plotting in a loop with a function
4 views (last 30 days)
I have the following code:
for x = 1:0.01:1.5
z = g(x,rpf);
but when I run this (assume my function is correct), I only get that z is equivalent to the last data point. How can I store x and z in a matrix and then plot them?