Rank: 4526 based on downloads (last 30 days) and 0 files submitted
photo

Duane Hanselman

E-mail
Company/University
University of Maine
Lat/Long
44.9025764465332, -68.6677703857422

Personal Profile:

Electrical Engineering professor. Coauthor of the "Mastering MATLAB" book series.

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Duane View all
Updated File Comments Rating
03 Nov 2009 Allstats Many statistics of a vector Author: Francisco de Castro

This function calls functions that exist in the Statistics toolbox, but does not make that requirement known. No error checking is done. Help text is ambiguous and no examples are given. The last two help sentences describe unknown concepts that require more than a passing inspection of the function code to understand.

20 Oct 2009 Intersection of two lines in 2D Takes four points, gives intersection of their connecting lines Author: Andr?

function name duplicates a standard MATLAB function name that finds the intersection of two sets.
poor help, no error checking, etc.

content of the file is:
%computes the intersetion of a_b and u_v
% a b u and v have to be 2d point vectors eg. a = [3 4];
x1=a(1);
x2=b(1);
x3=u(1);
x4=v(1);
y1=a(2);
y2=b(2);
y3=u(2);
y4=v(2);

ua = ((x4-x3)*(y1-y3)-(y4-y3)*(x1-x3))/((y4-y3)*(x2-x1)-(x4-x3)*(y2-y1));
x = x1 + ua*(x2 - x1);
y = y1 + ua (y2 - y1);
p = [x,y];

21 Aug 2009 degrees and radians Two helper functions, one converts degrees to radians, the other rads to deg. Author: Richard Medlock

How does this save time? Function calling overhead makes this computationally slower than direct multiplication. Typing the function call degrees(theta) is 14 keystrokes whereas 180/pi*theta is only 12 keystrokes. The same is true for typing radians(theta). So how does this save time?

20 Apr 2009 kaiser FIR Including Bandpass,Highpass,Lowpass FIR Author: zhang yong

This appears to be nothing more than a homework assignment. There are no functions contained here. There is no explanation of what is being done. There are no user inputs. Please delete.

16 Apr 2009 sine pwm this is an easy way for ckt simulation Author: Sabaripandiyan Dhananjayan

No description given here, so the only way someone can determine if this is at all useful is to download the code and run it. The code is a simulink model, so there is no help available by opening the file in a text editor. This submission is only useful to the author.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com