Function call problem. How to solve it?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a function, sliceobject(im). I used another m file to compute the input im. After that I used sliceobject(im) But the output can't show in workspace.
I directly use sliceobject with im input is okay.
how to show the output from sliceobject(im)
댓글 수: 2
Michael Haderlein
2014년 8월 19일
Please give us the header of the sliceobject function (first line) and the line which executes this function. Maybe, even the entire code of the sliceobject function will be necessary to help you find the error.
답변 (1개)
Adam
2014년 8월 19일
result = sliceobject(im);
should work fine.
Occasionally I find that my workspace doesn't refresh itself so I press F5 or just type e.g. 'result' on the command line to force the update and double check 'result' is in fact in the workspace.
댓글 수: 6
Adam
2014년 8월 19일
What did happen though? Did the function run to completion? Did you step in with the debugger and check everything was working as expected?
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!