- #1
sara_87
- 763
- 0
Homework Statement
If we have a function f with respect to t,
given:
h=a/n
t=i*h
so this means, t depends on n.
I have a function in MATLAB named num.m: where n is the only input and. My question is: if i num(10) i can generate a graph of t (x axis) against f (y axis) by the command: plot(t,f). and i can also generate a graph for n=80 by executing num(80)
but...how can i have them on the same graph?
i tried to plot them on the same graph, but i get an error: vectors must be of the same length.
Homework Equations
The Attempt at a Solution
Thanks in advance.