필터 지우기
필터 지우기

Why does "[x,y,z,v] = image" result in error in MATLAB, where 'image' is a 3D matrix?

조회 수: 3 (최근 30일)
moh mor
moh mor 2024년 3월 21일
댓글: moh mor 2024년 3월 21일
There is a predefined double-type matrix named 'flow' in MATLAB with dimensions of 25*50*25. when I want to implement this command in MATLAB:
[x,y,z,v] = flow;
It is ok and there is no problem. But, when I want to perform the same command using a similar hand-made double-type matrix with dimension of 21*101*101 , an error arises:
[x,y,z,v] = image;
Why? Why does it happen?
  댓글 수: 8
Stephen23
Stephen23 2024년 3월 21일
편집: Stephen23 2024년 3월 21일
"But, do not assign something to flow. just do this: [x,y,z,v] = flow;"
Sure, but in that case FLOW is a function, not "a predefined double-type matrix named 'flow' in MATLAB with dimensions of 25*50*25" as you incorrectly wrote in your question. We can easily confirm that FLOW is the name of a function:
which flow -all
/MATLAB/toolbox/matlab/demos/flow.m
Calling functions with multiple outputs is shown in the introductory tutorials:
"Why? Why does it happen?"
Misunderstanding what you are working with.

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

답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by