HI im kind of new to Matlab. What is the problem with my code displaying the error "Index exceeds the number of array elements (0)."
1 view (last 30 days)
Show older comments
load database
D=[];
for (i=1:size(F,1))
d=sum(abs(F(i)-f))
D=[D d];
end
1 Comment
Answers (1)
Hernia Baby
on 24 Feb 2021
You will see F value on the work space.
As Stephen Cobeldick says, F may have zero columns and non-zero rows.
0 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!