필터 지우기
필터 지우기

what is wrong with my script?

조회 수: 3 (최근 30일)
Purvil Patel
Purvil Patel 2017년 4월 29일
댓글: Walter Roberson 2017년 4월 30일
I am doing assignment and I am getting this Answer when I tried to find circle area and Circumferrence with Circle function. What is wrong with my script? Resolve it pls.
xyz = circle (6)
To use 'circle', the following product must be both licensed and installed:
RF Toolbox
  댓글 수: 3
Purvil Patel
Purvil Patel 2017년 4월 30일
I wanted to write function called circle who takes radius as input and returns area and circumference as output. But they are showing this. I tried to do in online matlab. It is working properly in online version but they are showing RF toolbox error in installed version sk what should I do??
Walter Roberson
Walter Roberson 2017년 4월 30일
After you have created your circle.m use
which -all circle
to be sure that the one you created is the first one on the list. If it shows up second on the list then you need to change your MATLAB path.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2017년 4월 29일
You have called upon RF toolbox circle() which is intended to draw circles on a Smith chart. It is very unlikely that is what you want to do.
What were you expecting circle(6) to do? Did you write your own circle.m ?

Jan
Jan 2017년 4월 30일
"circle" is a reserved name of a function of the RF toolbox. Use another name to avoid this problem.
  댓글 수: 1
Image Analyst
Image Analyst 2017년 4월 30일
편집: Image Analyst 2017년 4월 30일
I agree with Jan (as usual). Call it something more descriptive like GetCircleAreaAndCircum(). You can have virtually unlimited characters, so might as well use them to make your code more readable (this is a crusade of mine).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by