How to load data from one script to us to plot on another?
Show older comments
I want to load the data from one function script to another script to be plotted, how would I go about doing this?
function[c]=Main_Script(CO,N)
% hardcoded values are here
t(i+1)=t(i)+N;
T(i+1) = T(i)+N*(-0.5);
Sol(i+1)=KNO3inH2O(T(i+1));
if c(i)>Sol(i)
C=c(i)-Sol(i+1);
G=k_G*C^g;
I=L(1,:).^2*Density.';
dC=-3*k_v*D*G*Trap;
c(i+1)=c(i)+dC*N;
L(i+1,:)=L(i,:)+G*N;
else
G=0;
c(i+1)=c(i);
L(i+1,:)=L(i,:);
end
Answers (1)
James Tursa
on 16 Mar 2018
0 votes
Put the variables you want passed as outputs of the first function and inputs to the second function.
Categories
Find more on ThingSpeak in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!