index exceed mattrix dimension
이전 댓글 표시
x=Xout t=x(:,1); plot(t,x(:,2),'c') 'index exceeds matrix dimension' is what this line will always display. help me with the solution. thanks
댓글 수: 1
Stephen23
2015년 1월 20일
It would be much neater code if you formatted it so that it was not all on one line, as it seems to be now. And there is no need to create new variables just for plotting. Try something like this:
plot(Xout(:,1),Xout(:,2),'c')
Of course this still does not solve your problem that Xout does not have enough columns to plot...
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!