error-index exceeds matrix dimension
显示 更早的评论
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 个评论
Walter Roberson
2020-12-7
What is size(trainingFeat)
rosi khan
2020-12-21
Walter Roberson
2020-12-21
At the command line give the command
dbstop if error
and run your code. When the problem occurs, give the command
size(trainingFeat)
and show us the result. Also show us which line the problem occurs on
rosi khan
2020-12-22
Walter Roberson
2020-12-22
Okay, and what was the result you got?
rosi khan
2020-12-25
Walter Roberson
2020-12-25
You fixed the error?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!