how to solve Unexpected MATLAB expression in the below line ?
4 次查看(过去 30 天)
显示 更早的评论
if(color ==(255 255 255 )color || color==(0 0 0) || color==(255 0 0) || color==(205 133 63) || color==(101 67 33) || color==(0 134 139) )
Error shows in green and blue value of color white.
2 个评论
Star Strider
2019-2-2
To specify numeric vectors or matrices in MATLAB, use square brackets [] not parentheses ().
采纳的回答
Stephen23
2019-2-2
map = [255,255,255;0,0,0;255,0,0;205,133,63;101,67,33;0,134,139];
if any(ismember(color,map,'rows'))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!