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

조회 수: 1 (최근 30일)
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

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by