calling the variable from one script to another one and making a plot

2 次查看(过去 30 天)
What can I do to create two scripts one for each 'for loop' call the variable from one script to the other. And so make a plot (CL, CL1).
1 (this i will make a plot):
VetorN = fix ( 20 * ( sqrt(2) .^ ( 0 : 5 ) ) );
for k = 1 : numel(VetorN)
DiscSt.N(k) = VetorN(k);
WingSt.AoA = deg2rad( 5 );
WingSt.CL = WingSt.AoA + DiscSt.N;
CL = WingSt.CL;
end
plot(CL,CL1)
2:
z = 2;
VetorA = ( 0 + ( z *( 0 : in ) ) );
for j = 1 : numel( VetorA )
DiscSt.N = N;
WingSt.AoA(j) = deg2rad( VetorA(j) ); % input angle of attack
WingSt.CL = WingSt.AoA + DiscSt.N;
C = [ 1 1 WingSt.AoA 1 1];
CL1 = WingSt.CL
end
C

采纳的回答

madhan ravi
madhan ravi 2020-7-3
save CL1 % in 2
load CL1 % in 1

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by