I have a main matlab file. The main file accesses several functions. There is a loop in one of the functions and I want to see each part of the loop even though those variables aren't being stored. I am new to matlab and I don't understand whether the inputs are matrices, vectors or elements. How do I do that?
matrix1 = [1 2 3 4; 4 5 6 5; 7 8 1 0;3 5 7 6]
list1 = [1;3;5;4]
i=0
for a=1:1:4 %no. of rows
for b=2:1:4 % no. of col
x=matrix1(a,b);
s=1
n3=list1(a,1); %vector
mult=(s.*sin(i)./n3);
end
end
This is a part of a function that the main file calls. x, n3, mult are all being used but none of them are being saved. How can I see what these values are?