error-index exceeds matrix dimension

2 Ansichten (letzte 30 Tage)
rosi khan
rosi khan am 7 Dez. 2020
Kommentiert: Walter Roberson am 25 Dez. 2020
in the following code i got error and not resolve this error to train network for new algrithm.please help me how to set data values.
grayFeat=graymatterimageMatrix(find(graymatterimageMatrix~=1));
whiteFeat=whitematterimageMatrix(find(whitematterimageMatrix~=0));
csfFeat=csfimageMatrix(find(csfimageMatrix~=0));
trainingFeat=[grayFeat;whiteFeat;csfFeat];
trainingFeat=double(trainingFeat);
TrainSet=[trainingFeat(1:249543);trainingFeat(249544:322292);trainingFeat(322293:359819)];
TrainOut = zeros(359819,3);
TrainOut(1:249543,1) = 1;
TrainOut(249544:322292,2) = 1;
TrainOut(322293:359819,3)=1;
  7 Kommentare
rosi khan
rosi khan am 25 Dez. 2020
resolve the error.thanks
Walter Roberson
Walter Roberson am 25 Dez. 2020
You fixed the error?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

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!

Translated by