Rank: 1938 based on 79 downloads (last 30 days) and 2 files submitted
photo

Jeff Evans

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Jeff View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Jan 2013 probOfStreak Calculate the probability of a run or streak of K consecutive successes in N Bernoulli trials. Author: Jeff Evans probability, combinatorics, run, streak, coin toss, bernoulli 19 0
22 Dec 2008 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans data export, data import, structure, excel, xls2struct 60 6
  • 4.0
4.0 | 4 ratings
Comments and Ratings by Jeff View all
Updated File Comments Rating
05 Jul 2012 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

Fantastic. I've been using this for several years, and it works perfectly. What you see on the screen is what you get in your exported figure.

Why Mathworks can't develop and implement something that works this well is a mystery to me. I guess as long as you'll do it for free, they don't have to...

Many Thanks

24 Jun 2011 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes

26 Jul 2010 Multiple eigen-values for 2x2 and 3x3 matrices Compute in one shot the eigen-values of multiples (3 x 3) matrices using Cardan's formula Author: Bruno Luong

Excellent. Much faster than running eig in a for loop. Thanks!

08 Apr 2010 Surface Fitting using gridfit Model 2-d surfaces from scattered data Author: John D'Errico

08 Apr 2010 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

Hi all,

I am trying to compile a mex file from a MATLAB function for the first time (win7 x64, MATLAB 2009b). I followed the directions above with modifications posted by Wang, but I get an error. Can anyone suggest what may be wrong?

Thanks for all your great contributions.

Here's the error:

emlmex -d 'D:\myfile' myfun
Warning: The storage type used is an old style. The following file is out of date:
C:\Users\Jeffrey\AppData\Roaming\MathWorks\MATLAB\R2009b\mexopts.bat
> In CompilerConfigurationFactory>CompilerConfigurationFactory.getBasicStructArray at 189
In CompilerConfigurationFactory>CompilerConfigurationFactory.process at 107
In getCompilerConfigurations at 56
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\compilerman.p>parse_opts_file at 66
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\compilerman.p>compilerman at 15
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel/compile at 304
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel/doit at 135
In C:\Program Files\MATLAB\R2009b\toolbox\emlcoder\emlcoder\private\emlckernel.p>emlckernel at 31
In emlmex at 148
Attempt to reference field of non-structure array.
Use help emlmex for more information on using this command.
??? Error using ==> emlmex

Comments and Ratings on Jeff's Files View all
Updated File Comment by Comments Rating
15 May 2013 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans Coningham, Alex

Hi, Haven't got it to work, it seems to not like empty entries in structures (e.g. data.x=[])

------------------------------------------
??? Error using ==> xlswrite at 154
Input array is empty.

Error in ==> struct2xls at 55
xlswrite(filename,m,sheet,rangeB);
------------------------------------------

04 May 2013 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans Kachhia, Jaivik

working with your example :)

nice...

but not working with my file...

Input data must be a numeric, cell, or logical array.

Error in ==> struct2xls at 55
xlswrite(filename,m,sheet,rangeB);

11 Mar 2013 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans Joana

Hi, in my case I had the same

??? Error using ==> ctranspose
Transpose on ND array is not defined.
Error in ==> struc2xls at 91
out=[names';c'];

And I solved it by squeezing c in line 83 as:

%Transform to cell
c= squeeze(struct2cell(s));

Hope it helps!

01 Aug 2012 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans Khalid, Sulaiman

seems to work fine with me....

12 Oct 2010 struc2xls Writes a data structure in MATLAB to an excel file. Author: Jeff Evans David

Strange : Program does not seem to work with your example

>> s=struct('Name',{'Jon','Jonathan','Johnny'},'Score',[85,100,75]);
>> struc2xls('demo',s)
??? Error using ==> ctranspose
Transpose on ND array is not defined.

Error in ==> struc2xls at 91
out=[names';c'];

Contact us