errors running a function
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
nour
am 13 Dez. 2022
Beantwortet: John D'Errico
am 13 Dez. 2022
the filter2 does not work 

0 Kommentare
Akzeptierte Antwort
John D'Errico
am 13 Dez. 2022
I would read the error message.
It said
"Error using filter2
N-D arrays are not supported."
So, first, is your array more than 2-dimensional? I would bet that it is, since it appears to be an image. filter2 applies ONLY to 2-dimensional arrays. You cannot force code to do that which it is not designed to do. You can pray that it will work, but prayer seems so rarely useful with computer programming languages.
Perhaps your thought is to apply filter2 to each image plane. So do it. A loop is surely easiest there, calling filter2 once for each plane.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!