Horzcat error, attempting to display a matrix 3x11
1 次查看(过去 30 天)
显示 更早的评论
R=[148;36;49;-45;166] % 5x1 double
Rvx= [ 1 0 0; 0 cos(R) sin(R); 0 -sin(R) cos(R)];
The output can have zeros where there is a void. I believe I understand the error but don't know how to fix it.
0 个评论
采纳的回答
Dyuman Joshi
2023-9-13
R=[148;36;49;-45;166] % 5x1 double
Rvx= [1 zeros(1,2*numel(R)); 0 cos(R)' sin(R)'; 0 -sin(R)' cos(R)']
2 个评论
更多回答(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!