Matrix function [row:column] help
Ältere Kommentare anzeigen
When playing with the matrix B1 I am confused about what the result from RowColumn does. When I run the program it results in 1 but I don't understand the reasoning behind it. Can someone please explain this to me?
B1 = [2 4 6 8; 10 12 14 16; 18 20 22 24; 26 28 30 32]
idx_8=find(B1==8)
[row,column]=find(B1~=8)
RowColumn = [row:column]
Akzeptierte Antwort
Weitere Antworten (1)
Fangjun Jiang
am 5 Sep. 2019
It must mean to be
RowColumn = [row,column]
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!