![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1268270/image.png)
Error - Array indices must be positive integers or logical values - in viewSolid and viewSolidone
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Abhinav
2023 年 1 月 19 日
Hi Dev
change that code as
viewSolid(z,z_a+0*x+0*y,z_b+0*x+0*y,x,x_a+0*y+0*z,x_b+0*y+0*z,y,y_a+0*x+0*z,y_b+0*x+0*z)
now it will plot the figure
View Solid will integrate only if x, y and z variables are present in the integration that is only the error.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1268270/image.png)
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!