What is this question asking and where do I start?

2 Ansichten (letzte 30 Tage)
Benjamin Johnston
Benjamin Johnston am 28 Sep. 2020
Bearbeitet: David Hill am 28 Sep. 2020
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)

Antworten (1)

David Hill
David Hill am 28 Sep. 2020
[s',s'.^2*6,s'.^3];
  2 Kommentare
Benjamin Johnston
Benjamin Johnston am 28 Sep. 2020
what is that supposed to do.
David Hill
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);

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by