Can't figure out these two errors, if someone can help I'll appreciate it

1 view (last 30 days)
  2 Comments
the cyclist
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.
Yasser
Yasser on 20 May 2023
I would've posted the code but the its a school project and we use school computers,I don't have access to the code for the moment. But you have any idea or clue for a solution I would appreciate it

Sign in to comment.

Accepted Answer

Star Strider
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
/MATLAB/toolbox/images/images/padarray.m /MATLAB/toolbox/images/images/@gpuArray/padarray.m % gpuArray method
If these do not solve the problem, I will delete my Answer.
.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!