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

1 Ansicht (letzte 30 Tage)
  2 Kommentare
the cyclist
the cyclist am 19 Mai 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 am 20 Mai 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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Star Strider
Star Strider am 20 Mai 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.
.

Weitere Antworten (0)

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by