calling the variable from one script to another one and making a plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Cauli Vilela Ferreira
le 3 Juil 2020
Réponse apportée : madhan ravi
le 3 Juil 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!