What is this question asking and where do I start?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
David Hill
am 28 Sep. 2020
[s',s'.^2*6,s'.^3];
2 Kommentare
David Hill
am 28 Sep. 2020
Bearbeitet: David Hill
am 28 Sep. 2020
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);
Siehe auch
Kategorien
Mehr zu Other Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!