Undefined function 'mrdivide' for input arguments of type 'struct' error

조회 수: 6 (최근 30일)
i have a code :
but, i get the error :
Undefined function 'mrdivide' for input arguments of type 'struct'.
how to fix this ? please help. Thanks

채택된 답변

Steven Lord
Steven Lord 2016년 3월 15일
I'm assuming "l" is actually supposed to be "large" and that you changed one of them after copying and pasting your code but forgot to change the other. Anyway, REGIONPROPS returns a struct array. You can't divide by a struct array but you could divide by the contents of the fields of that struct array. See the second of the Tips on that documentation page for how to create a vector from the struct.
  댓글 수: 1
ElizabethR 2016년 3월 15일
hi Steven, Thanks for answare my question.. oohh yeah, i mean that l is large. thank you so much for your explanation .. God Bless You :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)


Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by