clculate the Area of circle but let the user enter the EQN of area and the radius

1 visualizzazione (ultimi 30 giorni)
Ask user to enter the Area eqn and the radius of circle with function , and then display the Area for him
  3 Commenti
Ahmed mahmoud Hafny
Ahmed mahmoud Hafny il 3 Dic 2021
i wrote a function >>>>
function Eqn = calcCircleArea (Eqn)
Eqn = input('Enter the Eqn to calculate the area');
end
then i miss with the code >>>>
Eqn = input('Enter the Eqn to calculate the area : ');
R = calcCircleArea (Eqn) ;
r = input('Enter the radius of the circle : ');
DGM
DGM il 3 Dic 2021
Why would you need to know the radius and equation to calculate the area?
If the equation is needed, what form is expected?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by