What is this question asking and where do I start?
3 次查看(过去 30 天)
显示 更早的评论
Calculate the surface area and volume of a cube for the side (s) values provided below using a column vector of your creation. The output table should display s in the first column, the surface area in the second column, and the volume in the third column.
𝑠= (6, 2.3, 35, 92.7, 0.5, 50, 100, 0.043, 492, 16.3)
0 个评论
回答(1 个)
David Hill
2020-9-28
[s',s'.^2*6,s'.^3];
2 个评论
David Hill
2020-9-28
编辑:David Hill
2020-9-28
Provide an output maxtrix as desired. Not hard if you need a table instead.
s=[6, 2.3, 35, 92.7, 0.5, 50, 100, 0.043, 492, 16.3];
S=s';
SurfaceArea=s'.^2*6;
Volume=s'.^3;
T=table(S,SurfaceArea,Volume);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Other Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!