calling the variable from one script to another one and making a plot
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Cauli Vilela Ferreira
am 3 Jul. 2020
Beantwortet: madhan ravi
am 3 Jul. 2020
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
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!