Hi I am trying to title my subplots but somehow it is not working.
ax(1) = subplot(1,3,1) %Thorax Joint
for n = 1:10ax(1)=plot(SF.T{n,1}(:,1),'g'); %right side trials
hold onendfor n = 1:10ax(1)=plot(SF.T{n,2}(:,1),'b'); %left side trials
hold onendtitle(ax(1),'Thorax')
This is the error I am getting:
Error using title (line 21)
Incorrect number of input arguments
If I try title('Thorax') then it is working, but if I add the other subplots, then it only gives me the title to the last subplot.
Best Answer