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

Stephen

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Stephen View all
Updated File Comments Rating
25 Jun 2010 Box Plot with Whiskers Plotted at Fixed Percentiles This script uses boxplot but plots the whiskers for a specified percentile. Author: Robert

Sorry, my bug fix included an error.

Lines 91 - 94 in boxplot_percentwhisk should be removed
    outliers = get(OUT(length(group_list)-i+1),'ydata');
    outlier_index = find(outliers == data_highpercent(i));
    outliers(1:outlier_index) = data_highpercent(i);
    set(OUT(length(group_list)-i+1),'ydata',outliers);

Those lines should be replaced with (corrected version):
    outliers_y = get(OUT(length(group_list)-i+1),'ydata');
    outliers_x = get(OUT(length(group_list)-i+1),'xdata');
    new_outlier_index = ((outliers_y < data_lowpercent(i)) | (outliers_y > data_highpercent(i)));
    outliers_y = outliers_y(new_outlier_index);
    outliers_x = outliers_x(new_outlier_index);
    set(OUT(length(group_list)-i+1),'ydata',outliers_y, 'xdata',outliers_x);

25 Jun 2010 Box Plot with Whiskers Plotted at Fixed Percentiles This script uses boxplot but plots the whiskers for a specified percentile. Author: Robert

This is a useful program.

I found that boxplot_percentwhisk does not handle negative-valued outliers correctly; all negative outliers are automatically cut off.

I removed the code from lines 91 - 94:
    outliers = get(OUT(length(group_list)-i+1),'ydata');
    outlier_index = find(outliers == data_highpercent(i));
    outliers(1:outlier_index) = data_highpercent(i);
    set(OUT(length(group_list)-i+1),'ydata',outliers);

and replaced it with the following code to fix the problem:
    outliers_y = get(OUT(length(group_list)-i+1),'ydata', 'xdata');
    outliers_x = get(OUT(length(group_list)-i+1),'xdata');
    new_outlier_index = ((outliers_y < data_lowpercent(i)) | (outliers_y > data_highpercent(i)));
    outliers_y = outliers_y(new_outlier_index); % Find the outliers that
    outliers_x = outliers_x(new_outlier_index);
    set(OUT(length(group_list)-i+1),'ydata',outliers_y, 'xdata',outliers_x);

05 Dec 2009 Microsoft 32/64-bit Visual C++ 2008 Express support files MEX and MBUILD setup files for 32/64-bit Microsoft Visual C++ 2008 Express and Windows Platform SDK. Author: Larry Baker

This was very helpful to me; it finally allowed me to get the Real-Time Workshop working correctly. I did not have to change the reference to 'v6.1', but I am running Matlab R2009a.

I found the easiest way to set the environment variables listed in the 'readme' file was to use the Control Panel. The path through the Control Panel screens is: Control Panel: System: Advanced: Environment Variables.

I am running Matlab R2009a on Windows XP 64 Professional.

Contact us at files@mathworks.com