Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I am trying to compare arrays. But, it throws me an error

조회 수: 1 (최근 30일)
Shambhavi Adhikari
Shambhavi Adhikari 2019년 4월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to execute this line as below:
%Data is 13513162x55 table and id is 617x1 double array
index = Data.id==id;
% I am trying to save the values where id is equal to Data.id
The error it throws is:
>> extract_id
Error using ==
Matrix dimensions must agree.
Error in extract_id (line 56)
index = Data.id==id;
Can you help me to solve the issue?
  댓글 수: 4
Shambhavi Adhikari
Shambhavi Adhikari 2019년 4월 3일
size should be values data.id has same as that to id
Stephen23
Stephen23 2019년 4월 3일
"size should be values data.id has same as that to id"
I have no idea what that means.
As requested, please give the exact size that you expect the output to be.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by