Question: Matlab help: t = 1; n = (0.25/24.30)^0.25; v = [ 6, 10.00001, 19, 26, 32, 38, 51, 63, 76, 88, 100, 109]; a =

Matlab help:

t = 1; n = (0.25/24.30)^0.25; v = [ 6, 10.00001, 19, 26, 32, 38, 51, 63, 76, 88, 100, 109]; a = .01*(10-v)./(exp((10-v)/10)-1); b = .125*exp(-v./80);

% Now we state the formula for dn/dt to calculate the function f = a*(1-n)- (b*n);

for ii = 1:length(v) [t, x] = ode15s(@jhindsfunctionpt4,[0 12],n,[],v(ii)); hold on; plot(t,x); end

I have this script so far that prints x and t values generated for each v value into the command window. It also generates one t,x graph

What I would like it to do is save the t, x values for each v in a text file (the same text file) and to plot a graph using t, x values for each v. There are 12 v values so, I should have 12 plots shown in the same window.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!