MATLAB outputting information I'm not asking for, even after semicolon
1 view (last 30 days)
Show older comments
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
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!