Search Comments and Ratings

go

   
Date File Comment by Comment Rating
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

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!

18 Jan 2013 Figure control widget Intuitive manipulation of a figure using key and mouse gestures Author: Oliver Woodford McClure, Tucker

Smooth and easy to use. I like that the right button pans.

09 Jan 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa McClure, Tucker

This is a good introduction to making all the device code I need inside blocks so that I can just drag and drop blocks and get all the processor-specific code. Say I need to add a new encoder. Copy and paste the block and change the pin numbers. Done. Thanks, Giampiero!

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

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!

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.

Contact us