What is this question asking and where do I start?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
David Hill
el 28 de Sept. de 2020
[s',s'.^2*6,s'.^3];
2 comentarios
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);
Ver también
Categorías
Más información sobre Other Formats en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!