how to divide matrices that print matrix
1 次查看(过去 30 天)
显示 更早的评论
clc;clear;
v2=[0,45,85,100];
t=[0,1.5,3,5];
a =v2/t ;
disp(a);
I thought "a" would print out in matrix form which it did not.
I need the answer in [a,b,c,d] form.
采纳的回答
Image Analyst
2019-9-12
Try
a = v2 ./ t % Use dot-slash ./ instead of /
No disp(a) needed if you leave off the semicolon.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!