No BSD License  

Highlights from
POWEL=POWEr ELlipse

1.5

1.5 | 2 ratings Rate this file 0 Downloads (last 30 days) File Size: 3.57 KB File ID: #17649
image thumbnail

POWEL=POWEr ELlipse

by Vassili Pastushenko

 

21 Nov 2007 (Updated 21 Nov 2007)

ellipse, diamond, rectoid or boat, obtuse or sharp angles. Flexible shape for data selection or anno

| Watch this File

File Information
Description

a mirror-symmetrical x-y line defined as
    (|x/radx|)^powx+(|y/rady|)^powy = 1
 Combines ellipse, oval, rectangle, diamond and boat shapes

output is either handle to graph object or object vertices, if no plot needed

Uses CLINE from FEX

MATLAB release MATLAB 7 (R14)
Other requirements CLINE.M from File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5754&objectType=file
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
24 Nov 2007 Ragnar Danneskjöld

It seems silly to force the user to also download cline, which does not do anything better than plot does.

24 Nov 2007 Ragnar Danneskjöld

Also, I want to create a shape that is centered around [1,2]. The picture shows that this tool can do it, but all of the shapes are around zero with this. What good is it?

24 Nov 2007 Ragnar Danneskjöld

The help is impossible to read.

25 Nov 2007 Vassili Pastushenko

Ragnar:
Yes. Every language is silly except of English, because I speak English.

 You may use LINE instead of CLINE. I do not force anybody. I just tell where I have descibed my abbreviation. Instead of CLINE(z) where z is a two column matrix or a complex vector you may write LINE(z(:,1),z(:,2)) or PLOT(z(:,1),z(:,2)).

With LINE (or PLOT) you have to type long words 'linewidth', 'markersize' etc. The aim of CLINE was to save extra efforts. I am simply lazy.

You want to put your shape in some point other than origin? If z = a complex vector x+1i*y, before calling CLINE add your point z0 to z. You can do this also with PLOT.

I am sorry that you cannot read help. I thought you can read English, although your accent is very pronounced.

25 Nov 2007 Baldassare Cossa

So if you are too lazy to make this easy to use, then why we should go to the effort to download it? Then we must change your code to make it werk? You are too lazy? Maybe too lazy to write good code?

Bad help too.

Can this make a hexagon?

26 Nov 2007 V P

You can make a hexagon and many other shapes using my STAR. It can also plot the line or patch around point(s) which you specify.

It is not difficult to include z0 into list of inputs. However this can be easily done by those who really need it. I am too lazy to supply trivial options.

26 Nov 2007 V P

You can make a hexagon and many other shapes using my STAR. It can also plot the line or patch around point(s) which you specify.

It is not difficult to include z0 into list of inputs. However this can be easily done by those who really need it. I am too lazy to supply trivial options.

26 Nov 2007 V P

You can make a hexagon and many other shapes using my STAR. It can also plot the line or patch around point(s) which you specify.

It is not difficult to include z0 into list of inputs. However this can be easily done by those who really need it. I am too lazy to supply trivial options.

26 Nov 2007 Duane Hanselman

It seems as though you should either be less lazy and fix/improve what folks are suggesting, or be more lazy and not submit files that confirm your laziness.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Vassili Pastushenko 22 Oct 2008 09:36:20
customization Vassili Pastushenko 22 Oct 2008 09:36:20
circle Vassili Pastushenko 22 Oct 2008 09:36:20
rectangle Vassili Pastushenko 22 Oct 2008 09:36:20
ellipse Vassili Pastushenko 22 Oct 2008 09:36:20
diamond Vassili Pastushenko 22 Oct 2008 09:36:20
boat Vassili Pastushenko 22 Oct 2008 09:36:20
leaf Vassili Pastushenko 22 Oct 2008 09:36:20

Contact us at files@mathworks.com