How to write a sentence with some of the input values to conclude the work?

I have to find a sphere's radius and volume with multiple given surface areas. I have created a script to do the work but I must format a sentence at the end that is similar to: "The sphere with surface area _ and radius _ has a volume of _. The surface area value was an input value and the radius and volume values were outputs. this would be easier done in a table, but that is not what the instructor wants.

 Réponse acceptée

Use the fprintf or sprintf function, whichever works best for you. See the documentation on them for the details.

Plus de réponses (0)

Catégories

En savoir plus sur Aerospace Blockset dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by