Plot multiple plots into single figure In Matlab. VERY EASY, BUT I AM MATLAB-ILLITERATE!
$30-100 USD
Completed
Posted almost 13 years ago
$30-100 USD
Paid on delivery
Here is the code:
-------------------------------------------------------------------------------------------
Tarray = linspace(1000,1600,7);
for T = 1:7
T_j = Tarray(T)
for c = 1:1:400
F = 96400;
n = 2;
R = 8.314;
jo = (8.66*10^7)*exp(-22082/T_j);
alpha = .5;
j(c) = (.01*c)-0.01;
j_bv = @(activation_overvoltage) (jo*(exp(((alpha*n*F*activation_overvoltage)/(R*T_j))) - exp((((alpha-1)*n*F*activation_overvoltage)/(R*T_j)))));
activation_overvoltage(c) = fzero(@(x) j_bv(x) - j(c),1);
f3 = ohmover(T_j,c);
end
f1 = revcellvoltage(T_j,oneatm,.5);
Vfc= f1-activation_overvoltage-f3;
end
jx=(.01*c)-.01;
plot(jx,Vfc)
-----------------------------------------------------------------------------------------------
Basically, I have an m-file that use arrays and uses functions to call to other m-files (which I will send to the winning bidder if they need it). I basically want to plot jx vs Vfx for 7 different temperatures ranging from 1000-1600K. I want each curve for each of these temperatures on the same graph. This should be a no-brainer to someone who knows a lot more than I do about Matlab.