A friend of mine is doing the exact same code
A = 4;
W = 0.6;
T = 0:10;
x = A*cos(W'*T')
title('Displacement versus Time')
Index exceeds the number of array elements (24).
Error in Assignment1Q3 (line 6)
title('Displacement versus Time')%Name of graph
title('Displacement vs Time')
xlabel('Time in s')
ylabel('Displacement in cm')
Why am I getting this error and he is not? I am really unsure when we have just named them different things, but the layout is excatly the same. I am pretty new to Matlab and I'm not even sure if this is the right place to post the question. If it isn't please point me in the right direction.