Getting error in using code num2cell
11 views (last 30 days)
Show older comments
Hi
I am using MATLAB 2022b, reinstalled on a new computer. Howver, the code that previously is not wokring and issue is that when it reaches the command of num2cell, it gives me this error ""Incorrect number or types of inputs or outputs for function 'num2cell.
I tried to use MATLAB example available here: https://uk.mathworks.com/help/matlab/ref/num2cell.html?searchHighlight=num2cell&s_tid=srchtitle_num2cell_1s
I am not able run any of the example on the page and get the same error. I appreciate the help!
Best regards
Nader
3 Comments
Accepted Answer
Star Strider
on 10 Apr 2023
Run this from a script or your Command Window —
which num2cell -all
It should return something similar to this. If it returns anything else (specifically anything not in the ‘MATLAB/toolbox’ subdirectory), that could point to the problem.
.
4 Comments
More Answers (0)
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!