MATLAB Answers

please ,I need to create function calculate the area of three different circles radius? any one can solve this issue is highly appreciated.

10 views (last 30 days)
majed alharbi
majed alharbi on 23 Mar 2018
Answered: Pawel Jastrzebski on 23 Mar 2018
i tried this function but its not work. unction [area] = CircleArea(radius) rad1=('8'); area1 = CircleArea(rad1); area = pi * radius^2; disp(['Area of Circle1 = ' num2str(area1)]) end

  0 Comments

Sign in to comment.

Answers (1)

Pawel Jastrzebski
Pawel Jastrzebski on 23 Mar 2018
Literally, have a look at how to define functions in Matlab - this page has many simple examples to follow:

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by