Plotcube function not working
7 次查看(过去 30 天)
显示 更早的评论
I am trying to use the plotcube function but keep reciveing the error "unrecognized function or variable 'plotcube' ". What am I doing incorrectly?
plotcube([5 5 5],[ 2 2 2],.8,[1 0 0]);
采纳的回答
Harsh Kumar
2023-7-19
编辑:Harsh Kumar
2023-7-19
Hi Morgan ,
I understand that you are facing an issue with the compilation of 'plotcube' function .
The error message you are getting is because the 'plotcube' function is not built-in to MATLAB. You need to download the function from the MATLAB Central File Exchange and add it to your MATLAB path to use it.
You can refer the below given steps and output for your reference :
- Download it from here https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube#version_history_tab).
- Click on the "Download" button.
- Add the function to your MATLAB path(add the downloaded folder to the path by clicking to 'Setpath' near 'prefrences' in the 'Home' section of MATLAB) .Refer attached image please .
- Also to test , you can directly the .m file now provided in the downloaded folder.
- Restart MATLAB.
OUTPUT :
Refer this documentation for details : https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!