Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions