Can't figure out these two errors, if someone can help I'll appreciate it
1 view (last 30 days)
Show older comments
2 Comments
the cyclist
on 19 May 2023
Instead of posting a screenshot (that doesn't even show all the code needed to debug the error), post the code itself (either by cut&paste, or uploading the m-file), and any inputs we need to run the code and get the error.
Accepted Answer
Star Strider
on 20 May 2023
The problem is that the error message does not say what the particular error is. Reproducing that line with various definitions of ‘I’ (including an empty matrix) throw no errors. I also thought that since ‘1’ andn ‘l’ appear to be quite similar in the font you are using, and that ‘l’ is undefined or a negative or non-integer might be the problem, however everything I try throws specific errors.
The only possibility I am left with are either path errors or that padarray has somehow been overshadowed. You can check for that by running these in a script or your Command Window —
restoredefaultpath
rehash toolboxcache
Checking for overshadowing should produce only these results —
which padarray -all
If these do not solve the problem, I will delete my Answer.
.
0 Comments
More Answers (0)
See Also
Categories
Find more on Logical 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!