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
- num = 10*cos(t).*(t).*(t) + 1;
- denom = (t.^4 + 5*t.^2 + t.^3 + t + 3);
- x = num ./ denom;
- stairs(t,x,'r')
Truly appreciate your help!