Search Comments and Ratings

go

   
Date File Comment by Comment Rating
26 Apr 2013 Numerical Inverse Laplace Transform Numerical approximation of the inverse Laplace transform for use with any function defined in "s". Author: Tucker McClure Lee

10 Apr 2013 Plot (Big) Makes MATLAB's line plots much faster. Author: Tucker McClure Filion, Adam

07 Apr 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure ren, na

it's helpful!

03 Apr 2013 Plot (Big) Makes MATLAB's line plots much faster. Author: Tucker McClure Hull, Doug

25 Mar 2013 Plot (Big) Makes MATLAB's line plots much faster. Author: Tucker McClure Michael

15 Mar 2013 Numerical Inverse Laplace Transform Numerical approximation of the inverse Laplace transform for use with any function defined in "s". Author: Tucker McClure McClure, Tucker

Hi Mohamed,

No, this is for continuous time only. However, Dr. Dan Ellis of Columbia University has an example of a numerical inverse z-transform written in MATLAB located here: http://www.ee.columbia.edu/~dpwe/e4810/matlab/s10/html/eval_z_transf.html

Note that this type of inversion is notoriously tricky to do numerically, as it requires very precise numbers. Working with the Symbolic Toolbox allows you to request arbitrary precision (e.g., 64 digits of precision).

Hope that helps!

- Tucker

15 Mar 2013 Numerical Inverse Laplace Transform Numerical approximation of the inverse Laplace transform for use with any function defined in "s". Author: Tucker McClure OUKILA, Mohamed Yassin

Can we apply these functions to a discrete function?
Thank you :)

13 Mar 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure McClure, Tucker

Hey, thanks for all the good feedback everyone. I appreciate your taking the time to leave a rating!

13 Mar 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure Nievinski, Felipe G.

06 Mar 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure YONGSUNG

good

20 Feb 2013 Numerical Inverse Laplace Transform Numerical approximation of the inverse Laplace transform for use with any function defined in "s". Author: Tucker McClure mecha, abdo

THAANKS

13 Feb 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure Sampson, Eric

Great work Tucker! :)

31 Jan 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure Ian

This is an excellent introduction to functional programming in Matlab, thanks Tucker!!!

10 Jan 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure Matthew

10 Jan 2013 Figure Rotator Allows a user to easily navigate around a target point in a 3D figure using a mouse. Author: Tucker McClure Woodford, Oliver

I like that it uses the scroll wheel.
Here's yet another:
http://www.mathworks.co.uk/matlabcentral/fileexchange/38019-figure-control-widget

06 Nov 2012 Real-Time Audio Processor Simplifies streaming or generating audio in real time. Author: Tucker McClure McClure, Tucker

Hi Bert,

Your question prompts a few things.

1. The MEX files for midi_interface.cpp are included, so you shouldn't need to build them. That script is only included in case someone *wants* to rebuild it for whatever reason. You should be able to just call midi_interface('open') from the command line to get going.

2. If for whatever reason you *do* want to rebuild it, it requires that you have the Windows SDK and edit midi_interface_builder.m to reflect the right path for its include and binary directories. This isn't documented because it's not intended for the user to do this.

3. The error is actually about a loss of precision in a cast. This is usually a warning instead of an error. Somewhere in your compiler, there's a setting for whether loss of precision should be considered an error or a warning. If you set it to warning, it will probably move on.

There's some included documentation about setting everything up. Have you read through this? Have you tried running any of the examples yet?

Hope that helps,

- Tucker

05 Nov 2012 Real-Time Audio Processor Simplifies streaming or generating audio in real time. Author: Tucker McClure Bert

I tried to run the midi_interface_builder but got his error:

>> midi_interface_builder
Building MEX file... midi_interface.cpp: In function 'bool OpenMidiInputDevice(unsigned int)':
midi_interface.cpp:111:64: error: cast from 'void (*)(HMIDIIN, UINT, DWORD, DWORD, DWORD) {aka void (*)(HMIDIIN__*, unsigned int, long unsigned int, long unsigned int, long unsigned int)}' to 'DWORD {aka long unsigned int}' loses precision [-fpermissive]

C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: Compile of 'midi_interface.cpp' failed.

Error using mex (line 206)
Unable to complete successfully.
Error in midi_interface_builder (line 18)
mex(['-I' sdk_path include_sub], ...
206 throw(exception);

02 May 2012 Fetch (Big) Fetch command useful for SELECT queries on large data sets. Author: Tucker McClure McClure, Tucker

Good point, Robin. The fetch_big code has more overhead than regular fetch and therefore is only faster on larger queries. Try it with 10,000 rows, and I bet you'll see a big difference!

02 May 2012 Fetch (Big) Fetch command useful for SELECT queries on large data sets. Author: Tucker McClure Robin Jens

Thanks Tucker

I tried your code an compared it with the code I normally use when I import data from an Access database to matlab.

Your code:

conn = database('DATABASE1', '', '');
setdbpref('DataReturnFormat','cellarray');
y = fetch_big(conn, 'select * from TABLE1');
test=y(:,[1 2 3 4]);

It took around 0.3seconds to import a cell array with the dimensions 200x20 with numeric data and strings.
Elapsed time is 0.032313 seconds.
Elapsed time is 0.027668 seconds.
Elapsed time is 0.028188 seconds.
Elapsed time is 0.032034 seconds.
Elapsed time is 0.028520 seconds.

My old code:

conn = database('DATABASE1', '', '');
curs=exec(conn,'select * from TABLE1')
setdbprefs('DataReturnFormat','cellarray');
curs = fetch(curs);
y=curs.Data;
test=curs.Data(:,[1 2 3 4]);
close(curs)

My old code seems to be faster. Is it because it is only a small amount of data I import and therefore preallocate does not have any impact on the time?

Elapsed time is 0.016508 seconds.
Elapsed time is 0.015066 seconds.
Elapsed time is 0.015458 seconds.
Elapsed time is 0.015469 seconds.
Elapsed time is 0.015922 seconds.
Elapsed time is 0.015577 seconds.

30 Apr 2012 Fetch (Big) Fetch command useful for SELECT queries on large data sets. Author: Tucker McClure McClure, Tucker

Hi Robin,

It takes care of the cursor stuff, so the code is actually much simpler.

conn = database('DATABASE1', '', '');
setdbprefs('DataReturnFormat','cellarray');
y = fetch_big(conn, 'select * from TABLE1')

Also, you can always try 'help fetch_big' for much more information! Please let me know how this works for you.

29 Apr 2012 Fetch (Big) Fetch command useful for SELECT queries on large data sets. Author: Tucker McClure Robin Jens

Dear Tucker

I have a question. Assume I have an Access database. The name of the Access database is DATABASE1. In this database I have different tables. I want to import all column in the table called TABLE1. How should the code look like if I want to use your function?I tried:
%conn = database('DATABASE1', '', '');
curs=exec(conn,'select * from TABLE1');
setdbprefs('DataReturnFormat','cellarray');
curs = fetch_big(conn,curs)
y=curs.Data

Best Regards

Robin

Contact us