How do i assign output arguments while using isosurface function?

10 ビュー (過去 30 日間)
imran khan
imran khan 2019 年 10 月 23 日
回答済み: Debarghya Kundu 2021 年 1 月 15 日
Hello all,
I am getting an error while executing isosurface function,
[faces, verts, colors] = isosurface(double(x),double(y),double(z),double(v),0,double(v));
where x, y, z and v have the same dimension 2001*2001*153
Error : Output argument "cout" (and maybe others) not assigned during call to "isosurface".
WHat is the meaning of this and how can i solve this error?
  2 件のコメント
Articat
Articat 2020 年 3 月 4 日
Were you able to get any solution to this? ... experiencing the same problem
jdiva6t9
jdiva6t9 2020 年 3 月 22 日
I experienced the same issue, and found I was using an invalid isovalue for the implicit surface function I created "v" with.
You might want to try different isovalues instead of "0" and see if this fixes the issue. It's hard to know your exact problem without more information.

サインインしてコメントする。

回答 (1 件)

Debarghya Kundu
Debarghya Kundu 2021 年 1 月 15 日
You might get the error, "Output argument <variable> (and maybe others) not assigned during call to <function>" due to the following reasons:
  • One of the functions you have called is defined to return an output argument but that output argument does not exist in the function when it tries to return.
  • You have misspelled the name of one of your output arguments inside your function, or you have forgotten to assign a value to one of the output arguments of your function.
  • Alternatively, the function was originally written with one or more output arguments, but the section of the function that computed the output argument was removed or modified in such a way that the output argument is now extraneous.
Solution:
Stop MATLAB on the last line of the function listed in the warning or error message. Verify that each of the output arguments listed in the function declaration line at the beginning of the function exist after that last line is executed (using the DBSTEP function or the Step button in the Editor). If the arguments do not exist, examine the function to determine where you intended the arguments to be declared. Verify that those lines of code are being executed and have no typographical errors.
Example demonstrating this error:
OutputNotAssigned.m

カテゴリ

Help Center および File ExchangeScalar Volume Data についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by