how can i plot a simple circle having radius 8000???
显示 更早的评论
i want to construct a circle centered at ORIGIN havin radius 8000. I tried the code given in examples but it says that 'function definations are not permitted in this context'.So now what should i do???
1 个评论
Geoff Hayes
2014-11-1
Mohini - in the future, if you are observing errors with your code, then post the code as well so that we can provide some guidance as to what to do to correct the problems (and/or reference the examples).
采纳的回答
更多回答(2 个)
Jan
2014-11-1
0 个投票
The meaning of a "radius of 8000" is not clear, because you forgot to define the units. It matters, if you mean "data"-Units, such that the X-Tick labels are set to -8000 to 8000, of if you want it to be in cm or pixels.
The error message means, that you tried to insert the definition of a function in the command window or in a script. Functions can be defined in function files only, and such a function file can be recognized by the fact, that it starts with the term "function".
You can find a lot of corresponding threads in the forum, when you take the time to search for (a part of) the error message. It is recommended to search in a forum before asking a new -better: old- question.
Image Analyst
2014-11-1
0 个投票
It's worth checking the FAQ http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F There is code in there to make circles and ellipses.
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!