Rank: 2456 based on 46 downloads (last 30 days) and 2 files submitted
photo

Shane Lin

E-mail
Company/University
University

Personal Profile:

 

Watch this Author's files

 

Files Posted by Shane Lin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 May 2007 Screenshot simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin specialized, plotting, box whiskers, plot, graphics, graph type 36 8
  • 5.0
5.0 | 4 ratings
03 Oct 2005 findFiles Find files with or without specifical entry. Author: Shane Lin path, directories, files, file, subdirectories, subdirectory 10 3
  • 4.33333
4.3 | 3 ratings
Comments and Ratings by Shane Lin View all
Updated File Comments Rating
26 Mar 2012 urlread2 Generalizes HTTP requests, providing more control and access to input and output Author: Jim Hokanson

Do you think if it will work if I add "urlConnection.setFollowRedirects(1);" to urlread? Thanks

23 Mar 2012 urlread2 Generalizes HTTP requests, providing more control and access to input and output Author: Jim Hokanson

Just tested the get example:

??? Error using ==> urlread2 at 203
Java exception occurred:
java.io.IOException: Server returned HTTP response code: 403 for URL:
http://www.google.com/search?hl=en&query=Pittsburgh+weather

Comments and Ratings on Shane Lin's Files View all
Updated File Comment by Comments Rating
25 Mar 2013 simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin Sebastian Guttke

Thanks a lot for this useful and cost saving tool. This makes MATLAB more interessting and should really be a standard tool for matlab. I was surprised not to find it as a normal tool. Coloring like Valery wrote is nice!

12 Jan 2013 simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin Bradford

12 Oct 2012 simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin Karl

Thanks Rebecca for your improving. I have found one little writing error in your update:
q2(i)=median(data(1:mi,i));

so the corrected script is:
for i=1:n
ni=find(isnan(data(:,i)));
if ni
mi=ni(1)-1;
q2(i)=median(data(1:mi,i));
if(rem(mi,2) == 0)
upperA = data(1:mi/2,i);
lowA = data(mi/2+1:mi,i);
else
upperA = data(1:round(mi/2), i);
lowA = data(round(mi/2):mi, i);
end;

q1(i) = median(upperA, 1);
q3(i) = median(lowA, 1);

min_v(i) = data(1,i);
max_v(i) = data(mi,i);
end
end

Kind regards
Karl

03 Oct 2012 simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin Karl

Thanks a lot! Your box plot saves me a lot of work.
To add names to the single box plots I have adjust some lines and add some parameter:
Line 77-81:
ylabel(yAxisLabel);
set(gca,'XTick',1:n);
set(gca,'XTickLabel',boxNames);
return;

Now you have to change the function head in following way:

function drawBox(draw_data, lineWidth, width, boxNames, yAxisLabel)

function boxPlot(data0, lineWidth, width boxNames,yAxisLabel)

drawBox(draw_data, lineWidth, width, boxNames,yAxisLabel);

Example for calling:

a = [120 250 210]; %1st box
b = [180 200 110]; %2nd box

boxPlot([a' b'],1,1,{'1st box', '2nd box'},'seconds');

19 Jul 2011 simple box whiskers plot (for those who don't have the statistics toolbox) box whiskers plot, adjustable size and line thickness Author: Shane Lin Valery

Thanks a lot! Simple and easy. You can modify the line 69 to:
plot([i-unit, i+unit], [v(3), v(3)],'r', 'LineWidth', lineWidth);
so that the median appears in red.

Contact us