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

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 Comment

Uploading a text file of your actual code is more useful for us than screenshots.

Sign in to comment.

Answers (1)

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);

Categories

Asked:

on 27 Feb 2015

Edited:

dpb
on 28 Feb 2015

Community Treasure Hunt

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

Start Hunting!