what is wrong with my script?
1 次查看(过去 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 个评论
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
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 ?
0 个评论
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
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 Center 和 File 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!