| Date | File | Comment by | Comment | Rating |
|---|---|---|---|---|
| 17 Nov 2009 | Tick2Bar Divides a time series into periods and returns high, low, open, close, volume. | Colner, Bob | ||
| 27 Oct 2009 | Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. | aa | Just great! |
|
| 09 Oct 2009 | ShadePlotForEmphasis Plots a shaded bar for emphasis as commonly seen on economic charts. | 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."
|
|
| 18 Jun 2009 | AddRecursivePath Adds the directory specified and all subdirectories to the path. | 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.
|
|
| 19 Mar 2009 | robustreadcsv CSVREAD for files with varying number of cols. | 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. | 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. | 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 | Doke, Jiro | Nice function, Michael. I can see this will be very useful. I found some bugs, though. Try this example: sampleTimes = [1:200];
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. | 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. | 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. | 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. | Lustig, Peter | Thank you very much! |
|
| 30 May 2008 | BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. | 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. | j, zahra | hello
|
|
| 17 Mar 2008 | BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. | Jo, Mighty | Excellent,
|
|
| 31 Jan 2008 | Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. | Vincent, BODET | ||
| 31 Jan 2008 | matlab A MATLAB specific syntax file for the TextPad 4 editor. | 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. | Purnama Sidiq, Teguh | very usefull, but unfortunately this error occur when i tried to run the program: ??? Error using ==> actxcontrol
Error in ==> graph_and_table at 148
:( |
|
| 27 Sep 2007 | Spreadsheet2Structure Reads in a spreadsheet and converts it into a structure whos field names are taken from the column h | 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. | 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. | amundsen, nils | ||
| 29 Aug 2007 | ShadePlotForEmphasis Plots a shaded bar for emphasis as commonly seen on economic charts. | 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. | Kjærnli, peder | I don't have very much experience yet.. |
|
| 21 Aug 2007 | Spreadsheet Demonstrates Microsoft Office Spreadsheet ActiveX Object. | 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. | Dadhe, Vaishali | ||
| 01 Mar 2007 | FastFillGrid Populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array. | 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. | ALI, WALID | ||
| 16 Feb 2007 | MagnetGInput Returns the position of the closest datapoint to your mouse click. | 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. | 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. | holden, dave | Found a few bugs,
|
|
| 24 Jan 2007 | FASTGETGRID Extracts values and formuals form all worksheets in a Microsoft Office Spreadsheet Object (OWC). | 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. | 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 | Kiger, Stead | Doesn't work, at least one function is missing. ??? Undefined command/function 'GetSubFunNames'. Error in ==> SplitFunctions at 76
|
|
| 21 Jul 2006 | BreakAxis Produces a plot who's y-axis skips to avoid unecessary blank space. | 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. | 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. | 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. | laoure, zara |
Error in ==> two_axes_export>gui_mainfcn at 477
Error in ==> two_axes_export at 41
??? Undefined command/function 'actxcontrol'. Error in ==> graph_and_table at 148
|
|
| 16 May 2006 | Good MATLAB Programming Practices For the non-programmer. | Jun, James | ||
| 08 May 2006 | plot3axisatorigin PLOT3 with axes through the origin. | Garcia, Edinaldo Augusto | ||
| 13 Apr 2006 | mode Statistical mode. | 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);
Hist method: 9.49, 9.61, 9.53secs
I swapped the order (both loops ran in same function) and the timing remained the same. Command line I used and results:
mode.m:
tic;
|
|
| 11 Apr 2006 | DepSubFun Locate dependent sub-functions of m-files. | 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. | 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);
|
|
| 19 Mar 2006 | mode Statistical mode. | Robbins, Michael | Thanks guys, but I tested it and your way was 50% slower. Elapsed time is 0.010098 seconds.
|
|
| 13 Mar 2006 | mode Statistical mode. | a., anonymous | FYI, here's a corrected version of Harold's suggestion above: sorted=sort(data(:));
|
|
| 08 Mar 2006 | Good MATLAB Programming Practices For the non-programmer. | erbaa, daza | ||
| 28 Feb 2006 | ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. | Robbins, Michael | Don't foreget to download --> FastFillGrid · FastGetGrid · QuestDlgWithGrid <--- from <http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author> ExcelMonteCarlo won't work without them! |
|
| 28 Feb 2006 | ExcelMonteCarlo Lets you do Monte Carlo analysis using your Excel spreadsheet. | 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. | 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. | (us) schwarz, urs | michael, unfortunately you submitted this nice snippet as
|
|
| 17 Feb 2006 | robustreadcsv CSVREAD for files with varying number of cols. | Zhou, Chris | Excellent reader, but consume too much memory for large files |
|
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