What is this question asking and where do I start?

3 visualizaciones (últimos 30 días)
Benjamin Johnston
Benjamin Johnston el 28 de Sept. de 2020
Editada: David Hill el 28 de Sept. de 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)

Respuestas (1)

David Hill
David Hill el 28 de Sept. de 2020
[s',s'.^2*6,s'.^3];
  2 comentarios
Benjamin Johnston
Benjamin Johnston el 28 de Sept. de 2020
what is that supposed to do.
David Hill
David Hill el 28 de Sept. de 2020
Editada: David Hill el 28 de Sept. de 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);

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by