Error: Index exceeds matrix dimensions.
이전 댓글 표시
clear
clc
[num,txt]=xlsread('tire_ratings.xls');
ratings=num(:,1);
speed=num(:,2);
vehicles =num(:,3);
text=txt(1,1:3);
TR=triangulation(ratings,speed,vehicles);
size(TR)
%This is the error/output
Index exceeds matrix dimensions.
Error in ENG1102_11C (line 9)
speed=num(:,2);
댓글 수: 6
Andrew Newell
2015년 4월 2일
I highlighted your code for you. In future, please select your code and click on the {} Code button.
Andrew Newell
2015년 4월 2일
What size is num?
Star Strider
2015년 4월 2일
Care to share ‘tire_ratings.xls’ with the rest of us so we can help you understand what the problem is? (Use the ‘paperclip’ icon, and remember to use both the ‘Choose file’ and ‘Attach file’ buttons.)
Cody Baumann
2015년 4월 3일
Cody Baumann
2015년 4월 3일
Cody Baumann
2015년 4월 3일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!