473,386 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to plot stairstep like graph in VBA

Hi guys,

I am wondering how to plot a stairstep-like graph in VBA automatically. In MATLAB, I got some function called 'stairs' that could help me with it. But I dont know if there exists any similar function in VBA as well.

For example, I got a function like:
Expand|Select|Wrap|Line Numbers
  1. num = 10*cos(t).*(t).*(t) + 1;
  2. denom = (t.^4 + 5*t.^2 + t.^3 + t + 3); 
  3. x = num ./ denom;
  4. stairs(t,x,'r')
  5.  
which works in MATLAB, how could I translate it into VBA?

Truly appreciate your help!
Jul 8 '14 #1
0 852

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: elemis | last post by:
Hi, do we have pixels that we can set in order to plot an x-y graph on a form ?
2
by: sheilly_2k7 | last post by:
how to plot a graph in c++ in turbo c++
1
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range...
1
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range...
4
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range...
0
by: foton002 | last post by:
i wanna plot a X_Y graph with C# for instance get x and y as 2 arrays and plot them. could u please help me thanks
1
by: xsrol | last post by:
Hai, How to plot waterfall graph in vb6.Can you give me example code. Thanks.
0
by: maximus tee | last post by:
hi, i'm new to python. i want to read from a text file and i want to plot a scatterplot. i want to plot lane as X-axis, EyVt and EyHt as Y-axis. i'm using Python 2.5 and Win XP. i have a sample...
2
by: vk2012 | last post by:
I am trying to plot a graph that takes a range of xvalues stored in a list and a function 'y' that takes those values as one of its operand . 'y' values are also stored in another array for each of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.