Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
17 Nov 2009 Tick2Bar Divides a time series into periods and returns high, low, open, close, volume. Author: Michael Robbins Colner, Bob

27 Oct 2009 Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. Author: Michael Robbins aa

Just great!

09 Oct 2009 ShadePlotForEmphasis Plots a shaded bar for emphasis as commonly seen on economic charts. Author: Michael Robbins Groppe, David

Great function! Thanks for writing it. It would be a bit easier to use though if you corrected the spelling of "emphasis." Currently you spell it "empahsis."
      much appreciated,
            -D

18 Jun 2009 AddRecursivePath Adds the directory specified and all subdirectories to the path. Author: Michael Robbins Bretschneider, Joerg

I was not able to run this on Matlab 6.1, so Release 5.2 seems to be an error. Matlab 6.5 has regexp, but one which doesn#t support 3 argins.
Nevertheless the mfile is very simplistic, all subdirectories are used, but only the first level of a possible tree, and certain directories like @ or private or ., .. are included.

19 Mar 2009 robustreadcsv CSVREAD for files with varying number of cols. Author: Michael Robbins Aktas, Sahin

09 Feb 2009 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins Chen, Yingyong

I have tried using the matlab uitable object to house the data, it prints, but it will always go out of position when being printed since the table is hard anchored on the figure and moves to unintended location when it prints due to resizing issue.

09 Feb 2009 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins Chen, Yingyong

Good work, however the same problem as Eric was pointing out that the grid does NOT print out, which makes it not quite as useful as it could be, as I have been looking hard for a solution in matlab to display tabulated data.

11 Nov 2008 BreakPlot Produces a plot who's y-axis skips to avoid unnecessary blank space Author: Michael Robbins Doke, Jiro

Nice function, Michael. I can see this will be very useful.

I found some bugs, though. Try this example:

sampleTimes = [1:200];
RPM = [600+rand(1,100)*500, 9000+rand(1,100)*2500];
breakplot(sampleTimes, RPM, 1500, 8500, 'Line');

I get an error in line 142 with the RESHAPE function.

One question, I don't quite understand the reasoning behind how you get the yticklabel. Can't you simply do this?

set(gca, 'yticklabel', num2str(ytick'));

21 Oct 2008 robustreadcsv CSVREAD for files with varying number of cols. Author: Michael Robbins Koelemay, Michael

This function is indeed really great, and robust.

I added 1 line to hugely boost performance by preallocating the output array "MM". To do this, just add this line right before the "for" loop:

MM=cell(length(M),max(cellfun(@length,regexp(M,','))));

20 Oct 2008 plot3axisatorigin PLOT3 with axes through the origin. Author: Michael Robbins Doria, David

This should clearly be an option in matlab! Can you make it plot the axes labels in the plot also?

02 Jun 2008 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Lustig, Peter

One small addition: If your y data has a large range and you want to skip a lot (e.g. several orders of magnitude), then the mid point might not be suitable for breaking. In my case the upper part got way too much range compared to the lower. Can easily be adjusted by tweaking the 'y_break_mid'. I used e.g.

y_break_mid= y_break_end - (y_break_end-y_break_start)./10;

Great code, helped a lot, Michael!

02 Jun 2008 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Lustig, Peter

Thank you very much!

30 May 2008 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Sanfilippo, Giuseppe

Well done, but It does not work when y is in a negative scale, i.e. y \in [-1000,0]

14 May 2008 SplitTxtFile Splits a very large text file into smaller ones. Author: Michael Robbins j, zahra

hello
i have a large text file.
that size is about 75 Mb and it has headerline.
Now i want to import that file in matlab and use of that for input in neural network tools. but i can't import that text file.
please help me

17 Mar 2008 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Jo, Mighty

Excellent,
Thank you

31 Jan 2008 Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. Author: Michael Robbins Vincent, BODET

31 Jan 2008 matlab A MATLAB specific syntax file for the TextPad 4 editor. Author: Michael Robbins azzam, mohammad

15 Dec 2007 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins Purnama Sidiq, Teguh

very usefull, but unfortunately this error occur when i tried to run the program:

??? Error using ==> actxcontrol
Control creation failed. Invalid ProgID 'MSFlexGridLib.MSFlexGrid.1'

Error in ==> graph_and_table at 148
h.grid = actxcontrol(...

:(

27 Sep 2007 Spreadsheet2Structure Reads in a spreadsheet and converts it into a structure whos field names are taken from the column h Author: Michael Robbins Evans, Jeff

Just what i was looking for. I modified the file a little so xlsread is called within it, rather than needing to be called sepearately. So now the only inputs it needs are ULHeaderValue and filename. I also added a clear statement to get rid of the raw, num, and TXT variables created during the load.

thanks for this useful tool!

20 Sep 2007 Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. Author: Michael Robbins Chernatkin, Vladimir

How can I make another sheet tab active ('Sheet 2' instead of 'Sheet 1' for example)?

20 Sep 2007 matlab A MATLAB specific syntax file for the TextPad 4 editor. Author: Michael Robbins amundsen, nils

29 Aug 2007 ShadePlotForEmphasis Plots a shaded bar for emphasis as commonly seen on economic charts. Author: Michael Robbins Bido, Francisco

Mathworks needs to rapidly implement a more refined version of this popular type of plot. In the mean time, this code is VERY useful. Thanks!!

29 Aug 2007 matlab A MATLAB specific syntax file for the TextPad 4 editor. Author: Michael Robbins Kjærnli, peder

I don't have very much experience yet..

21 Aug 2007 Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. Author: Michael Robbins p, parthiban

extremely useful... keep posting stuffs like this so tht novice like me will find it really useful.

how to access the datas inputed by the user in the spread sheet in my mfile. is there direct methods to access by giving the corresponding cell name??

02 Aug 2007 ShadePlotForEmphasis Plots a shaded bar for emphasis as commonly seen on economic charts. Author: Michael Robbins Dadhe, Vaishali

01 Mar 2007 FastFillGrid Populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array. Author: Michael Robbins Norouzi, Yaser

There is a minor error in this program,

25 Feb 2007 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins ALI, WALID

16 Feb 2007 MagnetGInput Returns the position of the closest datapoint to your mouse click. Author: Michael Robbins Franz, John

Awesome little script. Well documented, and easy to modify to pick a point from plots with multiple lines. Thanks!

09 Feb 2007 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins lahyani, said

hi i want to learn about matlab

25 Jan 2007 FastFillGrid Populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array. Author: Michael Robbins holden, dave

Found a few bugs,
% MaxR = min(L,MaxR); % orginal from Author
% MaxC = min(W,MaxC);
MaxR = min(L,MaxR) + MinR -1; % fix
MaxC = min(W,MaxC) + MinC -1;

24 Jan 2007 FASTGETGRID Extracts values and formuals form all worksheets in a Microsoft Office Spreadsheet Object (OWC). Author: Michael Robbins holden, dave

Just what I needed. Together with his earlier submissions with more low level functions this is very nice.

03 Jan 2007 Good MATLAB Programming Practices For the non-programmer. Author: Michael Robbins Dhage, Vishnuvenkatesh

basic guidelines express in a lucide manner

20 Dec 2006 SplitFunctions takes a file with many functions in it and splits those functions up into as many files, entitled wi Author: Michael Robbins Kiger, Stead

Doesn't work, at least one function is missing.

??? Undefined command/function 'GetSubFunNames'.

Error in ==> SplitFunctions at 76
                a(i).name = GetSubFunNames(a(i).fullfun,TRUE);

21 Jul 2006 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Chou, Kelvin

Excellent! very helpful function!

07 Jul 2006 StringIsNumber STRINGISNUMBER returns 1 if the input string contains only a number and otherwise a zero. Author: Michael Robbins Tuszynski, Jaroslaw

Simple robust function. Does not recognize negetive numbers and scientific notation. Nice alternative to ~isempty(str2num(str)) approach which sametimes gives strange results (try str = 'sphere' ).

14 Jun 2006 BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. Author: Michael Robbins Gupta, Saral

very efficient, and useful. Nice work

08 Jun 2006 graph_and_table Creates a graph and a data table below it. The table is put in an activex control using the column. Author: Michael Robbins laoure, zara

Error in ==> two_axes_export>gui_mainfcn at 477
        gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);

Error in ==> two_axes_export at 41
    gui_mainfcn(gui_State, varargin{:});

??? Undefined command/function 'actxcontrol'.

Error in ==> graph_and_table at 148
h.grid = actxcontrol(...

16 May 2006 Good MATLAB Programming Practices For the non-programmer. Author: Michael Robbins Jun, James

08 May 2006 plot3axisatorigin PLOT3 with axes through the origin. Author: Michael Robbins Garcia, Edinaldo Augusto

13 Apr 2006 mode Statistical mode. Author: Michael Robbins Bien, Harold

Timing a single loop is not accurate. To time performance, you need to do several iterations with a large dataset. Using a (slightly) modified version of your code, the time it takes to determine the mode of a 10,000 random element: >> data=rand(10000,1); y=mode(data);
yields the following timing results (where I surrounded both methods with a for i=1:1000 loop:

Hist method: 9.49, 9.61, 9.53secs
Non-hist method: 3.23, 3.32, and 3.20secs

I swapped the order (both loops ran in same function) and the timing remained the same.

Command line I used and results:
m=mode(data);
Elapsed time is 9.489020 seconds.
Elapsed time is 3.234487 seconds.
>> m=mode(data);
Elapsed time is 9.606668 seconds.
Elapsed time is 3.318920 seconds.
>> m=mode(data); % Order swapped (non-hist first, hist second)
Elapsed time is 3.197718 seconds.
Elapsed time is 9.529675 seconds.

mode.m:
--------------------
tic;
for i=1:1000
sorted=sort(x(:));
[d1, i1]=unique(sorted);
h=diff(i1);
[d2, i2]=max(h);
m=d1(i2);
end
toc

tic;
for i=1:1000
[b,i,j] = unique(x);
h = hist(j,length(b));
m=max(h);
y=b(h==m);
end
toc

11 Apr 2006 DepSubFun Locate dependent sub-functions of m-files. Author: Michael Robbins Wood, Malcolm

If your code uses MATLAB objects, this function returns only the method name, and not the class name, which is unhelpful. Similarly, if you have two sub-functions of the same name in different files, you can't tell which one is being used. Excluding files inside the MATLAB installation is a nice feature, but not for the reasons given: there's no point in identifying sub-functions when looking for dependent *files*. And there are a lot of "fopen" calls without any "fclose" calls, which leaves thousands of open file handles after a few test-runs. And the fact that the function only accepts cell arrays, and not strings, is pretty annoying.

27 Mar 2006 mode Statistical mode. Author: Michael Robbins Iswandy, Kuncup

The mode function seems to return only one solution when there are more than one solution, e.g. X = [1 1 0 2 3 3]; this function only returns 1. It should 1 and 3.

Here I give a little bit modifications

function y = modestat(x)

[b,i,j] = unique(x);
[m,k] = sort(hist(j,length(b)));
id = find(max(m) == m);
y = k(id);

19 Mar 2006 mode Statistical mode. Author: Michael Robbins Robbins, Michael

Thanks guys, but I tested it and your way was 50% slower.

Elapsed time is 0.010098 seconds.
Elapsed time is 0.015903 seconds.

13 Mar 2006 mode Statistical mode. Author: Michael Robbins a., anonymous

FYI, here's a corrected version of Harold's suggestion above:

sorted=sort(data(:));
[d1, i1]=unique(sorted);
[d2, i2]=max([i1(1); diff(i1)]);
m=d1(i2(1));

08 Mar 2006 Good MATLAB Programming Practices For the non-programmer. Author: Michael Robbins erbaa, daza

28 Feb 2006 ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. Author: Michael Robbins Robbins, Michael

Don't foreget to download --> FastFillGrid · FastGetGrid · QuestDlgWithGrid <--- from <http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author&gt; ExcelMonteCarlo won't work without them!

28 Feb 2006 ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. Author: Michael Robbins Robbins, Michael

The corrected file has been posted! There are many things I'd like to add because they're just so easy to do, like correlating assumptions (inputs) with forecasts (outputs) to quantify which assumptions are most powerful in affecting the forecasts and analysing the forecast distributions. I'd like to create a facility to build a non-parametric assumption distribution, etc. But I'm not going to do much more work on this unless there's some demand. I think it's interesting and very easy but there must be a need.

25 Feb 2006 ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. Author: Michael Robbins Robbins, Michael

Thank you! You are very observant! Also, let me note that there will soon be an update to this submission that will correct some problems. In the original version, users may encounter problems with only one assumption and some users may have a problem opening the PDF documentation. Those of you who have downloaded the file may want to check back in a few days.

24 Feb 2006 ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. Author: Michael Robbins (us) schwarz, urs

michael, unfortunately you submitted this nice snippet as
michaelNOrobbinsSPAMusent@yahoo.com
while it really should be
michaelNOrobbinsSPAMusenet@yahoo.com
i suggest you ask min to change this...
us
ps: min, please remove this review if michael agrees

17 Feb 2006 robustreadcsv CSVREAD for files with varying number of cols. Author: Michael Robbins Zhou, Chris

Excellent reader, but consume too much memory for large files

 

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