i am executing the code below and getting the error"Index exceeds matrix dimensions. Error in principale_peppers (line 7) g=X(:,:,2)/255" can anyone help.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
tina jain
am 2 Mär. 2015
Beantwortet: Luuk van Oosten
am 2 Mär. 2015
X=imread('d:\images\peppers.bmp'); X=double(X); [l1,l2,l3]=size(X);
r=X(:,:,1)/255; g=X(:,:,2)/255; b=X(:,:,3)/255;
0 Kommentare
Akzeptierte Antwort
Luuk van Oosten
am 2 Mär. 2015
Have a look here at the answer, or any other previous answered questions regarding 'index exceeds matrix dimensions' problems around this forum.
You are trying to access a value in your matrix that does not exists.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!