MATLAB outputting information I'm not asking for, even after semicolon

1 visualizzazione (ultimi 30 giorni)
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
Stephen23
Stephen23 il 27 Feb 2015
Modificato: Stephen23 il 27 Feb 2015
Uploading a text file of your actual code is more useful for us than screenshots.

Accedi per commentare.

Risposte (1)

dpb
dpb il 27 Feb 2015
Modificato: dpb il 28 Feb 2015
f=zeros(2, 1, Num_members)
No semicolon there, so since Num_members is 5 it's precisely what you should expect.
f=zeros(2, 1, Num_members);

Community Treasure Hunt

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

Start Hunting!

Translated by