MATLAB outputting information I'm not asking for, even after semicolon
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I'm having a problem with what MATLAB is outputting. I just want the FF values at the end of the code, but it keep giving me the f values too (see Snap2 file. Photo cuts off after the second FF value). My code is below (or in Snap1 file), Num_members=5.
f=zeros(2, 1, Num_members)
for i=1:Num_members %Loop will solve for each member
T=[costheta(i) sintheta(i) 0 0; 0 0 costheta(i) sintheta(i)];
D=[Disp(nodes(element(i,2),2)); Disp(nodes(element(i,2),3)); Disp(nodes(element(i,3),2)); Disp(nodes(element(i,3),3))];
f(:,:,i)=Kloc(:,:,i)*T*D;
FF=f(:,:,i)
end
1 Commento
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!