Rank: 1821 based on 83 downloads (last 30 days) and 3 files submitted
photo

Andres

E-mail

Personal Profile:

I'm an engineer working constantly with Matlab. I've used it for a lot of applications. Though I'm certainly not an expert, I can say I have a lot of experience using Matlab for electronic, mechanical, biomedical and statistical problems.I also have a blog where everyone is welcome to visit and post suggestions and comments: http://thehappyengineer.blogspot.com


 

Watch this Author's files

 

Files Posted by Andres View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jul 2012 Concatenate arrays with different sizes in Matlab This function allows you to concatenate arrays with different sizes padding with NaN where needed. Author: Andres array, concatenate, function, different sizes, matrices, vectors 34 0
  • 4.0
4.0 | 1 rating
03 May 2012 Screenshot Custom Colors for Plots This function provides a selection of colors easy to differentiate for plotting graphics. Author: Andres plot, graph, color 12 2
  • 5.0
5.0 | 1 rating
19 Apr 2012 Save Workspace to Struct This function allows to save all the variables from the current workspace into a struct array Author: Andres save, struct, base, workspace, structure array 37 4
Comments and Ratings by Andres View all
Updated File Comments Rating
17 Mar 2014 GUI utility to extract x, y data series from MATLAB figures Extract x and y data series from a MATLAB figure to a Microsoft Excel file. Author: Tingyue Gu

Simple and precise. Very good function.

11 May 2012 Shaded area plot Plot two lines, then shade the area between those two lines. Author: Dave Van Tol

really useful!

03 May 2012 mtit: a pedestrian major title creator MTIT creates a major title in a figure with many axes Author: us

To those who are asking about a second line in the title, or making just more space for it, that's easy, just use sprintf inside mtit, like this:
mtit(sprintf('LINE 1 \n LINE 2\n\n\n'))

By the way, I haven't used all the options, but at least for the basic stuff (title for a 2x2 figure) it works very well.

19 Apr 2012 Save Workspace to Struct This function allows to save all the variables from the current workspace into a struct array Author: Andres

Thanks Jan. I followed your suggestions and now it looks even better.

13 Apr 2012 Violin Plots for plotting multiple distributions (distributionPlot.m) Function for plotting multiple histograms side-by-side in 2D - better than boxplot. Author: Jonas

Very, very useful!

Comments and Ratings on Andres 's Files View all
Updated File Comment by Comments Rating
29 Apr 2014 Save Workspace to Struct This function allows to save all the variables from the current workspace into a struct array Author: Andres Adrien peyrache

Why not this?:
w = whos;

for a = 1:length(w)
str.(w(a).name) = eval(w(a).name);
end

26 Mar 2014 Concatenate arrays with different sizes in Matlab This function allows you to concatenate arrays with different sizes padding with NaN where needed. Author: Andres Leonardo Ramirez

14 Jan 2013 Custom Colors for Plots This function provides a selection of colors easy to differentiate for plotting graphics. Author: Andres Julian

Sweet! thanks

14 Aug 2012 Save Workspace to Struct This function allows to save all the variables from the current workspace into a struct array Author: Andres Óscar

Thanks for this function. It would be nice if structure fields where sorted in somehow, e.g.:
WStruct=orderfields(THEWORKSPACE);

BTW, a shorter (but slower) version of the same function would be:
WSVARS = evalin('caller', 'who');
c=cellfun(@(x) evalin('caller',x),WSVARS,'UniformOutput',false);
WStruct2=cell2struct(c,WSVARS,1);

04 May 2012 Custom Colors for Plots This function provides a selection of colors easy to differentiate for plotting graphics. Author: Andres Jan Simon

I cannot really distinguish the colors magenta4 and darkorchid on my screen.
The "for ct2" loop to find a matching name is inefficient. Better: "ct2 = find(strcmpi(NColors, ct1));"
fprintf() is more efficient than disp(sprintf()) as recommended by MLINT.
There is no need to enclose vectors in double square brackets.

Contact us