Cell array output from function file
조회 수: 3 (최근 30일)
이전 댓글 표시
Is there I can output a cell array from a function file into the MATLAB workspace? I am attaching the code for reference. The SOL array is cell type which is output from the function file but it does not appear in my workspace.
댓글 수: 0
답변 (1개)
Mehmed Saad
2020년 4월 15일
편집: Mehmed Saad
2020년 4월 15일
That is because you are running the Function directly which will give you only 1 output
Instead of runing directly, call your function from another code or by command prompt as follow
[IU, SOL] = MMM1D;
Now see you workspace
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!