Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
19 Nov 2009 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes Hastiepen

I know nothing about Fortran, and had to convert some code into Matlab. The conversions that f2matlab made helped me immensely to give me a starting point. Many thanks!

09 Nov 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes neve, sophie

I have seen another think that is sad : no greek letter is allowed
Example :
suplabel('log_{10} (Re \epsilon *)','y');

does not write the epsilon, right?

09 Nov 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes neve, sophie

I have aproblem with it : if I only do 4 subplot out of 6, for example 1,2,4,5 and not 3 and 6, the title is not centered any more.... sad :(

02 Nov 2009 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes Richard, Martin

Very useful package indeed. Thank you.

30 Oct 2009 textLoc Puts string onto the current axes with location similar to legend locations. Author: Ben Barrowes ihsan

That is what I need. Thanks!

12 Oct 2009 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Savransky, Dmitry

Absolutely fantastic. Exactly what I needed - many thanks. Quick note for anyone installing on RHEL5. The default rpms that may be pre-installed for GMP don't seem to work when it comes time to compile the c files. However, if you get rid of these and compile GMP and MPFR from source, everything works great.

30 Sep 2009 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Delaney, Nigel

I just reinstalled this package for a windows 7 64 bit computer (running 64 bit matlab). It was a bit of work so I thought I would share the process, or offer to email anyone the binaries/toolbox as I have it.
The first issue is that building mpfr/gmp for x64 is quite hard. Apparently, there is a new ming compiler out for 64 bit, but no one has had it work so far (and I didn't try it). The second option, SUA is also useless as there is no gcc compiler for x64 with it, and you would be forced to make a 32 bit version. So, in order to get the libraries I had to use MPIR (which can substitute for GMP) and then compile mpfr with this instead of gmp. To do this, you need to do the following:
Download MPFR ad MPIR :
http://www.mpfr.org/
http://www.mpir.org/
Now, both of these are hard to build, but someone has setup a way to build them with either visual studio or visual studio express that is reasonably painless. Go here to get the build instructions.
http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php
Note that in order to get the visual studio build to work, you have to install a yasm assembler program and integerate it into visual studio (follow the 3 step instructions on their website).
 http://www.tortall.net/projects/yasm/
One you are setup to go, first build mpir using visual studio. Note that there is a vcbuild directory included with the mpir program that you can use directly to make the files. This program can substitute for gmp in the next linking step, so use the gmp.h header file that comes with it next. With that done, you can now open the VS project from the gladman site and get ready to compile mpfr. Note that the project files he hands out do not include the actual code, so you will have to move the mpfr source files and reference mpir library files around to make sure they appear in their correct locations relative to the what is in the .sln file gladwell gives out. Once this is done, you are all set to build and things should compile just fine.
Next, compile the .mex files (which should be pretty straightforward now that the libraries are built). Now the package is up and running, however it did not work right away for me. It appears that for whatever reason if matlab saw this type of code:
length(x)==1
in the toolbox .m files, it would call the eq.m method of this toolbox instead of the builtin method, and this broke the dang thing as it would not know how to work with two double types. The same was true for <, >, etc.. This seemed very strange to me and I am not sure if it is due to matlab upgrades or to some odd system setting on my machine. In any event, changing the relevant files to check for a double and go to the builtin method seemed to work around the problem okay, and so far the code is working fine.

Great package overall!!! Certainly a lot of work must have gone into it, only giving it 4 out of 5 because I just spent 6 hours getting it to work, but I am sure if I had gone the 32 bit route it would have been much easier.

29 Sep 2009 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Chamane

helpfull

23 Sep 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes McGlinchy, Joe

GREAT! works perfect thanks

03 Sep 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes Otterson, Scott

A quick solution to a common problem. Zooming would be nice -- I haven't checked the underpinnings, but if anyone is interested in taking a look

http://www.mathworks.com/matlabcentral/fileexchange/19314

decorates plots with extra labels and survives the zoom button

07 Aug 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes omzaz

potentially useful for me, but not until zoom/rotate issue is fixed.

07 Aug 2009 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes omzaz

23 Jul 2009 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Ware, Brent

Anyone had any luck getting this to work with recent versions of OS X? The old instructions don't seem to work.

26 Jun 2009 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes Tavares, Gonçalo

Hi,
I downloaded this package but got a segmentation violation when running the supplied precompiled math.dll. I am using Matlab 2008a and Mathematica 6.0. Then I copied the mathlink.h and the ml32i1m.lib from the Mathematica directory and tried compiling math.c. However, when I run the mathrun.m script on Matlab I get this error:

C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: 'and' not found.
 
??? Error using ==> mex at 207
Unable to complete successfully.

Any help?
Thanks a lot.
Gonçalo

Error in ==> mathrun at 8
eval(command)

16 Jun 2009 textLoc Puts string onto the current axes with location similar to legend locations. Author: Ben Barrowes Dalon, Thierry

See also FX textbp for option "best location".

04 May 2009 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Dorra

very helpful but i have a little bit difficulty to find the function i need

19 Apr 2009 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes HAN, Qun

It's great to know this great tool is still imporved.

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

Good tool, but like all other comments, I cannot zoom/rotate the image afterwards.

14 Dec 2008 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Ma, Da

very useful and good work!

21 Nov 2008 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes Martin

I try to install it on Mac OS 10.4.
I cannot compile math.c with mex, i get a parse error the following error:

In file included from math.c:35:
/Applications/Mathematica 5.2.app/AddOns/MathLink/DeveloperKit/Darwin/CompilerAdditions/mathlink.h:92: error: parse error before 'yet'
/Applications/Mathematica 5.2.app/AddOns/MathLink/DeveloperKit/Darwin/CompilerAdditions/mathlink.h:408: error: syntax error before 'enum'
math.c: In function 'MathLinkStringEval':
math.c:332: warning: passing argument 3 of 'MLGetByteString' from incompatible pointer type
math.c: In function 'WaitForReturnPacket':
math.c:566: warning: passing argument 3 of 'MLGetByteString' from incompatible pointer type

Can anybody help me?
Thanks

03 Nov 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Mitchell, Kevin

Beautiful! This rivals laprint.m (http://www.mathworks.com/matlabcentral/fileexchange/4638) for packages that really should be included with Matlab by default.

03 Nov 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Mitchell, Kevin

06 Oct 2008 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes s, a

In case anyone gets here b/c they're having the same problem I was, I figured out how to fix the problem.

The issue is that when you do: -lML the compiler looks for a library named libML.a. However, on my machine the library is named libMLi3.a.

Therefore if I run:
/Applications/MATLAB74/bin/mex -I/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions/ -L/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions/ -lMLi3 math.c

Then everything works out hunky dory.

Thanks,
AS

29 Sep 2008 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes s, a

I can't get this to compile on my Mac (OS 10.5.5).

I changed the math.c file as instructed in the readme. When i compile I get an error:
$ /Applications/MATLAB74/bin/mex -I/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions/ -L/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions/ -lML math.c
ld: library not found for -lML
collect2: ld returned 1 exit status

    mex: link of 'math.mexmac' failed.

----
Anyone have any suggestions as to why that is not working?

Thanks,
AS

05 Sep 2008 matlab2fmex matlab2fmex.m is a small translator which aims to convert numerical M-files to Fortran90 mex. Author: Ben Barrowes Brown, John

The final version I found at sourceforge.net is 1.21, which is released in 2005. Is there newer version of this GREAT tool!? I love this tool very much. Please DO NOT stop to update it.

28 Aug 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes VD, HH

Windows version here: http://www.thedigitalmap.com/~carlos/software/index.htm

25 Aug 2008 textLoc Puts string onto the current axes with location similar to legend locations. Author: Ben Barrowes Bocquet, Stephen

A useful function, quite well thought out.

Unlike text, textLoc outputs the handle whether requested or not - I suggest fixing this by changing the output variable to Hout and including the line:
 if nargout > 0; Hout = H; end;

textLoc works as advertised for a string, but if used with a cell array it shows up a deficiency of the Matlab text function in that you can't have left-aligned text on the right hand side ('East'), or right-aligned text on the left ('West'), because the anchor point of the text object is coupled to the alignment property. The 'Extent' property could be used to position the anchor point away from the edge of the graph, but then the text won't stay in the desired position if the plot is resized. Unless the Matlab text object is revised, I can't see how to fix this problem.

12 Aug 2008 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes Munster, Jake

Useful tool, but as Tom Van Grotel said, I can't zoom in on the subplots! Setting 'HitTest' to 'Off' did not work =(

07 Aug 2008 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes Mialle, Pierrick

04 Aug 2008 Generalized Hypergeometric Function Calculates the Generalized Hypergeometric Function at the desired accuracy. Author: Ben Barrowes B, James

In general, this function works just fine. However, a word of warning. If you plan on executing the function more than 8,192 times in any given MATLAB session, you will need to either a) run MATLAB -nojvm from Cygwin, or comment out ALL of the write statements in the Fortran code. Evidently all of these write statements fill up some kind of buffer in the desktop implementation that is bypassed when you run MATLAB from Cygwin. This behavior is present in 2007a Student Version and 2008a full version. I compiled the code using MINGW and the GNUMEX kit.

Other issues include the STOP statements in the code that will cause MATLAB to exit erroneously. I had to replace all of the STOP statements with the appropriate MATLAB MEX error statement.

12 Jul 2008 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes prajapati, yogendra

I cannot understand how to use derivative of modified Mathieu function first and second kind.any one tell me.

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

I can not rotate an image when I use this function.

09 Jun 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes c, grat

can anyone tell me how exactly to install the binaries in windows? thanks

23 Apr 2008 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes Van Grootel, Tom

Axes below the "Ghost" axes made by SUPLABEL are not editable (zoom, scale, rotate). Hint to improve this: 'HitTest' set to 'Off', but this still did not solve it.

19 Apr 2008 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes Addison, Chris

Exactly what I was looking for! Thanks for this.

09 Apr 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Nikolai, Zolotykh

09 Apr 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Zolotykh, Nikolai

It's really useful and greate soft

08 Apr 2008 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes anonymous, anonymous

Hello
I have tried to convert the where statement applied to a 2D array to matlab and it seems f2matlab does not translate well.
Best Regards
Eduardo

program ed_example
   integer B(10, 2)

   B(1:10, 1) = 0
   B(1:10, 2) = 1
   where (B(:,:)>0)
      B(:,:) = B(:,:) + 9
   endwhere
end program

 Translating:
f2matlab('ed_example.f')

ans =
b([1:10], 1) = 0;
b([1:10], 2) = 1;
fmask=(b(:,:)>0);
b(fmask,:) = b(fmask,:) + 9;
endwhere;

Running:
>> b(fmask,:) = b(fmask,:) + 9
??? Index exceeds matrix dimensions.

02 Apr 2008 textLoc Puts string onto the current axes with location similar to legend locations. Author: Ben Barrowes Silva, Bruno

it would be perfect if it also had the "best" location, as in the "legend" command.

31 Mar 2008 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes baudo, pippo

20 Mar 2008 Computation of Special Functions MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions." Author: Ben Barrowes Wang, Ellips

Mathieu angle function is not correct. How to correct it? Thank you. I also need the spheroidal function.

18 Mar 2008 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes Hidalgo, Fat

I tried to run the code but I keep getting the error:

??? Input argument "filename" is undefined.

Error in ==> f2matlab at 101
 if exist(filename,'file')==2

I think this is because Matlab does not like when functions are defined in the script. I should define the function outside of the script in a separate .m file, but when I try to do so, I just get more errors. It's hard for to to see what I need to cut from the original program to define the function separately. Anybody with comments on this please email me.

14 Mar 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Fleming, Ronan

When installing in suse 10.1, I found it necessary to explicitly provide the path '/usr/local/lib' in the mp_compile_all.m file as that is where my lmpfr libraries were

e.g. If you get the error
mex: link of 'mpfr_something.mexglx' failed.

Then change lines 12 & 13 to

disp(['compiling: mex ',dd(ii).name,' -L/usr/local/lib -lmpfr -lgmp'])
    mex([dd(ii).name],'-L/usr/local/lib -lmpfr -lgmp');

30 Jan 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Wildes, Andrew

Installed on windows, and works well. It's slow, so it would be difficult to use with any fitting program. We found a couple of bugs and contacted Mr. Barrowes, who was very receptive and replied quickly and enthusiastically. Recommended!

01 Jan 2008 Multiple Precision Toolbox for MATLAB This toolbox defines a new mp class allowing multiple precision objects in MATLAB. Author: Ben Barrowes Sragner, Laszlo

Some small precisions (1-2) can cause Matlab to break. Some operations cause memory dump errors , maybe this is due to passing illegal arguments somewhere to mex functions.
The GMP mex wrapper functions work well with the supported dlls on a windows XP for these it is worth using it and writing your own m-class around them.

28 Dec 2007 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes singh, thangjam

very good

11 Dec 2007 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes du, shisen

laser

03 Dec 2007 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes du, shisen

optical laser

30 Nov 2007 matlab2fmex matlab2fmex.m is a small translator which aims to convert numerical M-files to Fortran90 mex. Author: Ben Barrowes ziyang, jun

Great tools!
But I found it can't deal with the following kind of code:

pt(indFPS,1) = signalGenerator(t,...
    [pump.forwardPower(:);signal.forwardPower(:)]./1000,...
    [pump.forwardShape(:);signal.forwardShape(:)],...
    [pump.forwardT0(:),signal.forwardT0(:)],...
    [pump.forwardRep(:),signal.forwardRep(:)]);

Anyone knows how to modify matlab2fmex to do the job?

thanks.

24 Nov 2007 Mathematica Symbolic Toolbox for MATLAB--Version 2.0 A symbolic toolbox for MATLAB based on Mathematica. Author: Ben Barrowes paivar, arash

dear ben do you know why i recieved incorrect result by this:
k=sym('k','positive');
z1=1.21+0.008*i
k1=((z1-k))^(1/2);

t=2*pi*k/(imag(k1))
s=int(t,k);

 

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