I have a program in which I am iterating V from -80 to
80 to generate values of n. then I have to plot n vs
V.
I wrote
for iter = -80:10:80
V= iter;
[alphan,betan,alphah,betah,alpham,betam]= ratcon(V);
[n,m,h] =
gatpara2(alphan,betan,alphah,betah,alpham,betam);
n(iter) = n;
m(iter)= m;
h(iter)= h;
V(iter) = V;
end
plot(V,n,'r')
The problem I am having is that the command
n(iter) = n; generates an error message saying
subscript indexes must be real positive integers or
logicals.
How do I write those statements in order that they
store all values of n,m,h and V during the iteration?
I am not sure if you need the function files too to
help me. If so, can send them.
Thanks for your help.
Asha