Rank: 19 based on 1164 downloads (last 30 days) and 21 files submitted
photo

Stuart McGarrity

E-mail
Company/University
The MathWorks Inc

Personal Profile:

I'm from a small town called Largs near Glasgow in Scotland. Studied for my undergraduate degree in Electronic and Microprocessor Engineering and PhD in Signal Processing at Strathclyde University. Currently I work on MATLAB Videos at the MathWorks and live in Washington DC.

Professional Interests:

 

Watch this Author's files

 

Files Posted by Stuart View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Dec 2011 Screenshot Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example RedBlack Tree Binary Search Example Used to Compare of C++, Java™, Python, Ruby and MATLAB® Code Author: Stuart McGarrity article, object oriented, tree, c, paper, python 62 13
  • 4.0
4.0 | 9 ratings
05 Dec 2011 Screenshot Comparison of C++ and MATLAB Using Object Oriented Application Example Wireless Communications Application Example Used to Compare C++ and MATLAB® Code Author: Stuart McGarrity wireless, article, class, c, matlab, object oriented 54 6
  • 4.28571
4.3 | 7 ratings
31 Aug 2011 Screenshot Textscantool GUI to read large text files Author: Stuart McGarrity data export, data import, textscan large data t..., potw, pick of the week 110 33
  • 4.52941
4.5 | 20 ratings
04 Aug 2009 Screenshot chkmem Detect and Diagnose MATLAB® Memory Fragmentation Problems Author: Stuart McGarrity out of memory matlab ... 39 1
  • 5.0
5.0 | 4 ratings
04 Aug 2009 Published MATLAB Files What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples Code examples used in "What's New for Object-Oriented Programming in MATLAB®" Webinar Author: Stuart McGarrity whitepaper, article, paper, object oriented progr..., classes, classdef 16 2
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Stuart View all
Updated File Comments Rating
30 Aug 2011 Textscantool GUI to read large text files Author: Stuart McGarrity

There should be a "Count Lines in File" button at the end just before importing. Do you see it?

12 Jan 2010 Handling Large Data Sets Efficiently in MATLAB Handling Large Data Sets Efficiently in MATLAB® Author: Stuart McGarrity

Please watch the webinar for which this is the code. The first 40 min, as you correctly say, focuses on maximizing the available memory for MATLAB. The latter 25 min focuses on minimizing MATLAB's memory usage, processing a large data set in a few ways. BTW MATLAB's out of memory errors are not directly affected by available RAM.

19 Nov 2009 Bluetooth voice transmission Bluetooth Voice Transmission Author: Stuart McGarrity

This model was only tested with the MATLAB release listed above (7.0.1) and a few others. A version of this model which works with the current release of MATLAB and Simulink is shipped with the Communications Blockset called commbluetoothvoice.mdl

Enter at the command line:
>>commbluetoothvoice

19 Oct 2009 Textscantool GUI to read large text files Author: Stuart McGarrity

Don't add the code at the very begining. Add if just before the first "if str2double..." line you insert.

03 Oct 2009 Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example RedBlack Tree Binary Search Example Used to Compare of C++, Java™, Python, Ruby and MATLAB® Code Author: Stuart McGarrity

Yes, I agree that this is a pure translation / syntax comparison, intended to help programmers of these languages, become familiar with MATLAB OO syntax. It could be implemeted in a way more appropriate for MATLAB (while loosing the direct syntax comparison). I would encourage anyone to submit a new version of the code that does this. (I will fix the HTML typo - Thanks).

Comments and Ratings on Stuart's Files View all
Updated File Comment by Comments Rating
02 Apr 2012 Textscantool GUI to read large text files Author: Stuart McGarrity chen

textscantool
??? Error using ==> textscan
Buffer overflow (bufsize = 4095) while reading string from
file (row 15936, field 2). Use 'bufsize' option. See HELP TEXTSCAN.

Error in ==> textscantool>importDataCallBack at 848
                dataCell=textscan(fid,formatString,numBlockRowstoRead,... %
                Read data
 
??? Error while evaluating uicontrol Callback

31 Mar 2012 Bluetooth Full Duplex Voice and Data Transmission Simulink® and Stateflow® model of a full duplex Bluetooth® communication link. Author: Stuart McGarrity khan, usman

this simulation is not running.any 1 can help???

20 Mar 2012 MDF Import Tool and Function GUI tool and function to import signal data from MDF (Measure Data Format) files Author: Stuart McGarrity Waishampayan, Nilesh
20 Mar 2012 MDF Import Tool and Function GUI tool and function to import signal data from MDF (Measure Data Format) files Author: Stuart McGarrity Waishampayan, Nilesh

I am trying to import some INCA data into the workspace. The problem I am running into is the the length of the signal name is more than 64 characters. Is there a way to change this limit.

What alternate options do I have to get this data into MATLAB?

Thanks,
Nilesh

19 Mar 2012 Textscantool GUI to read large text files Author: Stuart McGarrity Wittenberg, Peter

This is definitely a nice tool. However, the folks who generate some of the data files I have have thrown a few curve balls. While I can reprocess the data from strings, I don't think it would be hard for you to add a few new features.
1. A new class of logical which translates strings of f or false or 0 or off to logical false (any case) and t or true or 1 or on to logical true.
2. A class which takes a set of string values that have a limited set of possible values and translates them into numbers. For example, there might be three different status types, e.g., standby, off, and on. We might like to put in numbers such as 0 for standby, 1 for off, and 2 for on. It would be handy to have textscantool do that translation rather than have us do the conversion later.

Top Tags Applied by Stuart
wireless, article, matlab, paper, simulink
Files Tagged by Stuart View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Dec 2011 Screenshot Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example RedBlack Tree Binary Search Example Used to Compare of C++, Java™, Python, Ruby and MATLAB® Code Author: Stuart McGarrity article, object oriented, tree, c, paper, python 62 13
  • 4.0
4.0 | 9 ratings
05 Dec 2011 Screenshot Comparison of C++ and MATLAB Using Object Oriented Application Example Wireless Communications Application Example Used to Compare C++ and MATLAB® Code Author: Stuart McGarrity wireless, article, class, c, matlab, object oriented 54 6
  • 4.28571
4.3 | 7 ratings
31 Aug 2011 Screenshot Textscantool GUI to read large text files Author: Stuart McGarrity data export, data import, textscan large data t..., potw, pick of the week 110 33
  • 4.52941
4.5 | 20 ratings
04 Aug 2009 Screenshot chkmem Detect and Diagnose MATLAB® Memory Fragmentation Problems Author: Stuart McGarrity out of memory matlab ... 39 1
  • 5.0
5.0 | 4 ratings
04 Aug 2009 Published MATLAB Files What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples Code examples used in "What's New for Object-Oriented Programming in MATLAB®" Webinar Author: Stuart McGarrity whitepaper, article, paper, object oriented progr..., classes, classdef 16 2
  • 5.0
5.0 | 3 ratings

Contact us at files@mathworks.com