Could someone explain the squeeze function
6 次查看(过去 30 天)
显示 更早的评论
I'm new to matlab and struggling to understand the squeeze function, what does it exactly do?
1 个评论
KALYAN ACHARJYA
2018-8-28
As you changed the question, please ask a new question, don't edit the question again after getting the answer.
采纳的回答
KALYAN ACHARJYA
2018-8-28
编辑:KALYAN ACHARJYA
2018-8-28
Question: would it be possible to extract the row 1 column 2 value from each layer of myimage?
Yes
data1=myimage(1,2,:)
And As per title of the question RGB values extraction-
red=myimage(1,2,:,1);
green=myimage(1,2,:,2);
blue=myimage(1,2,:,3);
Same for second case.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!