No BSD License  

Highlights from
LINe <--> PATch convertor

2.0

2.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 3.54 KB File ID: #18463
image thumbnail

LINe <--> PATch convertor

by Vassili Pastushenko

 

25 Jan 2008 (Updated 25 Jan 2008)

Toggles LINe(s)<-->PATch(es) using 'color'<-->'Facecolor'

| Watch this File

File Information
Description

To select ROI with mouse pointer, it is better to produce first lines, and later convert them to patches. One may also be willing to convert patches to lines. LINPAT is a flexible convertor, suggesting a manual mode and 4 automatical modes. Demos included in help.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
25 Jan 2008 Duane Hanselman

Statistics Toolbox Requirement not noted. Submission could be rewritten to eliminate this need, as the Statistics Toolbox function used is not required to implement line to patch conversion.

25 Jan 2008 V P

Let the users decide whether the difference between the following principally equivalent expressions is that important.

r=unifrnd(A,B,M,N);

r=A+(B-A)*rand(M,N);

Of course, if B<A, then UNIFRND fails. Do you mean that this is a sufficient reason to avoid using UNIFRND?

In any case those who have no STATS tlbx, can easily replace unifrnd if necessary. What is the percentage of such users?

25 Jan 2008 Duane Hanselman

I have no idea what unifrnd does since I do not have the Statistics Toolbox. I only know that it is part of the Statistics Toolbox. I have no idea what percentage of MATLAB users don't have that Toolbox. I wonder how many people who don't have the Toolbox would know what to do to fix your submission or even more so, would want to devote the time and energy to debug and fix it? My decision would be to simply delete your submission from my computer.
Since lines and patches are standard MATLAB graphical objects that don't involve statistics, I assume that statistical functions are not required to convert one to the other.

25 Jan 2008 V P

You have astonished me and partly convinced. Therefore a special offer to you: just delete function CHEER. LINPAT will still work.

25 Jan 2008 Duane Hanselman

So why make a submission that requires many users to make modifications to it (that are only known by reading file reviews) so that it runs on their computer? To be courteous, it seems that informing folks in the help text of the file itself would be much better. But then again, as you have demonstrated, courteousness is not a requirement.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data exploration Vassili Pastushenko 22 Oct 2008 09:44:48
line Vassili Pastushenko 22 Oct 2008 09:44:48
patch Vassili Pastushenko 22 Oct 2008 09:44:48
conversion Vassili Pastushenko 22 Oct 2008 09:44:48
graphics Vassili Pastushenko 22 Oct 2008 09:44:48

Contact us at files@mathworks.com