Force get 3*4 matrix
2 次查看(过去 30 天)
显示 更早的评论
Hello, I want force user input exactly 3*4 matrix. other size is unacceptable.
0 个评论
采纳的回答
James Tursa
2017-2-17
x = the user input
if( ~isequal(size(x),[3 4]) )
error('Size must be exactly 3x4')
end
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!