Software Listing of Author : "Scott Hirsch"
- Acoustic Tracker (Updated)
- License: Freeware
- Price: 0.00


This demo uses sound to identify the location of an object. The listening array is two microphones, which will allow us to estimate the position along the straight line between the microphones. Location estimation is based solely on the rms value of the noise measured at the two microphones. Note that the algorithm in a real acoustic tracking application will be much more complicated, relying heavily on phase information to identify source location, and spectral analysis for source characterization.
- Publisher: Scott Hirsch
- Date Released: 05-01-2013
- Download Size: 502 KB
- Download
- Platform: Matlab, Scripts
- CircuitTool (a Test and Measurement Demo)
- License: Freeware
- Price: 0.00


This case study demonstrates an application built to aid with developing numerical models of a device under test. This process, called System Identification, can be used to create accurate models of a system without having to mathematically characterize the complete system behavior. These models can then be used as the foundation of further design studies. This demonstration integrates design tools (Signal Processing/System Identification) with test Tools (Instrument Control and Data Acquisition). The Instrument Control Toolbox is used to control a digital function generator to generate system input, while the Data Acquisition Toolbox acquires system response from the Windows Sound Card. Note 1: The odds of this demo running on your machine are slim, since it requires specific hardware. I hope that it gives you ideas of how to address...
- Publisher: Scott Hirsch
- Date Released: 17-03-2013
- Download Size: 20 KB
- Download
- Platform: Matlab, Scripts
- DAQRESHAPE: Reshape array of triggered analog input data
- License: Shareware
- Price:


When you use an analoginput object from the Data Acquisition Toolbox to capture data which which spans multiple triggers, the data from each trigger is separated by NaNs. This function strips out the NaNs and reshapes the data, adding one dimension for trigger. There will be one "column" in the extra dimension for each trigger, yielding an output array of size NSamples x NChannels x NTriggers.
- Publisher: Scott Hirsch
- Date Released: 24-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Data Acquisition Start/Stop Button
- License: Shareware
- Price:


DAQSTOPBUTTON(FIG,OBJ) adds a start/stop button to figure FIG. This button can be used to start and stop data acquisition object OBJ. DAQSTOPBBUTTON will also delete OBJ when FIG is closed (i.e., it sets FIG's CloseRequestFcn to delete the object). DAQSTOPBUTTON(FIG,OBJ,'P1','V1','P2','V2', ...) specifies Property-Value pairs for configuring properties of the start/stop button. Any valid property of a togglebutton can be specified. HBUTTON = DAQSTOPBUTTON(...) returns a handle to the start/stop button. Example: fh = figure; % Create a figure ai = analoginput('winsound'); % Create an input object addchannel(ai,1); % Add a channel set(ai,'TriggerRepeat',inf); % Configure to run infinitely set(ai,'TimerFcn','plot(peekdata(ai,500))'); % Each timer event will plot recent data hButton = daqstopbutton(fh,ai); % Add the stopbutton
- Publisher: Scott Hirsch
- Date Released: 05-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Data Analysis Webinar Case Study
- License: Freeware
- Price: 0.00


This is the source code and script from the case study presented during the Data Analysis Webinar on 4/24/03 (archived at http://www.mathworks.com/cmspro/online/5102/req.jsp?13727). The case study demonstrates how several MATLAB toolboxes can be used together to handle a real-life engineering task. Highlights: - Signal processing of a .wav file with the Signal Processing Toolbox - Automatic generation of a report containing batch data analysis with the MATLAB Report Generator - Identification of helicopters on unlabeled tape recordings, with the Data Acquisition Toolbox and the Instrument Control Toolbox. - Integration of the identification algorithm into a VB application with the MATLAB Compiler and the COM Builder
- Publisher: Scott Hirsch
- Date Released: 17-05-2013
- Download Size: 4659 KB
- Download
- Platform: Matlab, Scripts
- Example: Using Nested Functions for Timers
- License: Shareware
- Price:


This is a simple example of how nested functions can simplify the writing of callback functions for writing continuously-running applications. Callback functions are used by timer objects and the various objects in the Test & Measurement Toolboxes (Data Acquisition Toolbox, Instrument Control Toolbox, Image Acquisition Toolbox) to associate MATLAB code with events such as timers. This example contains the code included in the October, 2005 MATLAB News & Notes tip on this topic
- Publisher: Scott Hirsch
- Date Released: 09-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- GOTO: Go to a directory containing a file
- License: Shareware
- Price:


GOTO filename changes MATLAB current directory to the one containing filename. filename must be on the MATLAB path. goto uses the first instance of filename that it finds (a la WHICH). This is not rocket science, but it sure is convenient!
- Publisher: Scott Hirsch
- Date Released: 05-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- HP 8510C Demo
- License: Shareware
- Price:


This file handles some basic communication with an HP 8510C, which is a 20 GHz network analyzer. Communication is with either serial or GPIB. The code performs the range of tasks which many users will likely encounter (calibration, configuration, trigger data collection, read and visualize data). Hopefully it gives a feel for communicating with Agilent/HP instruments, and some general instrument control tricks. Note: Does not require Instrument Control Toolbox if serial communication is used.
- Publisher: Scott Hirsch
- Date Released: 25-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Interfacing to External Devices from MATLAB
- License: Freeware
- Price: 0.00


This package contains 5 simple examples showing how to interfacing to external devices from MATLAB. These examples show a range of approaches for connecting MATLAB to different types of external devices: - Data Acquisition Toolbox - Instrument Control Toolbox - Image Acquisition Toolbox
- Publisher: Scott Hirsch
- Date Released: 08-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- M-Lint report in Microsoft Excel
- License: Freeware
- Price: 0.00


I wrote this for a friend who likes to use Excel to track the issues reported by the M-Lint code analyzer on her code. She explained that she would paste the M-Lint report into Microsfot Excel and check off each item as she fixed it. This file automatically creates a Microsoft Excel file containing the contents of the M-Lint report. It's quite basic - you can run for a single file or all files in a directory. Let me know if you find this useful and if you'd like to see other features added ... Enjoy, Steph!
- Publisher: Scott Hirsch
- Date Released: 01-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Nested Function Live Stock Ticker
- License: Shareware
- Price:


This application uses a WSDL web service to provide live (albeit 20 minute delayed) stock quotes. By using a MATLAB timer object, it runs continuously as a background task (without blocking the MATLAB command line). This application is not meant to be a serious stock ticker - it is intended to highlight usage of nested functions. If you really need to get live stock prices into MATLAB, please use the Datafeed Toolbox. This application is posted as a supplement to the nested function tip published in the October, 2005 issue of MATLAB News & Notes. 1/6/2010: The stock quote service used in this example is no longer available.
- Publisher: Scott Hirsch
- Date Released: 17-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Spectrogram Scope
- License: Shareware
- Price:


SPECGRAMSCOPE makes it fairly easy to include a spectrogram scope in your real-time data acquisition and analysis application. You feed spectrumscope your data, and it plots the FFT - simple enough! It takes 2 steps to use SPECGRAMSCOPE. First, you initialize the scope with basic information needed for the FFT (sample rate, fft length, and history length). After that, all you need to do is pass your data to the scope.
- Publisher: Scott Hirsch
- Date Released: 11-06-2013
- Download Size: 133 KB
- Download
- Platform: Matlab, Scripts
- Spectrum Scope
- License: Shareware
- Price:


Spectrum scope makes it easy to compute and display the fft of a live signal. You feed it your time series data, and it does the rest. It works very nicely with the Timer objects introduced in R13, and with Analoginput objects (from the Data Acquisition Toolbox). Here's a simple example, assuming you've defined a sample rate (Fs), a desired FFT length (Nfft), and some data (s) that you'd like to view: %% Initialize scope spectrumscope(Fs,Nfft); %% Update scope spectrumscope(s); I've included a few functioning examples to get you started. I welcome your feedback.
- Publisher: Scott Hirsch
- Date Released: 22-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Startup MATLAB in last working directory
- License: Freeware
- Price: 0.00


This submission provides directions on how to instruct MATLAB to begin in the final working directory from the previous session of MATLAB. There are no m-files included with this submission, just directions on how to modify startup.m and finish.m
- Publisher: Scott Hirsch
- Date Released: 07-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Test and Measurement Seminar Demos
- License: Freeware
- Price: 0.00


This includes the source code from most of the demos used in the Electronic Throttle Body Case Study. This case study shows the use of MATLAB and the Data Acquisition Toolbox to characterize the behavior of an electronic throttle body. It includes online data analysis, automated comparison with Simulink simulation, and automatic report generation. The case study has been detailed in MATLAB Digest: http://www.mathworks.com/company/newslette...2/throttle.html For more information about the Data Acquisition Toolbox: http://www.mathworks.com/products/daq The "Products Required" list indicates all products which are used at least once in this package. This package includes many simple demos, most of which can run with just a single toolbox - so don't be afraid to download even if you don't own most of the listed products! Finally, a...
- Publisher: Scott Hirsch
- Date Released: 23-04-2013
- Download Size: 614 KB
- Download
- Platform: Matlab, Scripts
- Test and Measurement Widgets
- License: Shareware
- Price:


TMWidgets is a set of functions that make it easy to include real-time updating displays in your measurement application. TMWidgets includes three widgets: a strip chart (for time series), a spectrum scope (for frequency) a specgramscope (for frequency and time) and a thermometer (for scalar display). Note - each of these is available in a slightly different form elsewhere on MATLAB Central. This submission will contain the most recent versions.
- Publisher: Scott Hirsch
- Date Released: 24-05-2013
- Download Size: 195 KB
- Download
- Platform: Matlab, Scripts
- Time Series Viewer
- License: Shareware
- Price:


The time series viewer is a tool for interactive exploration of time series data. It was designed with flight test data in mind, but could be used for other applications. This viewer allows you to interactively visualize time series data in your MATLAB workspace. It provides limited analysis capabilities, too. For the purposes of this application, "time series data" refers to parameters that vary only as a function of time. Specifically, this application is restricted to working with vectors (i.e. 1xN or Nx1).
- Publisher: Scott Hirsch
- Date Released: 14-01-2013
- Download Size: 61 KB
- Download
- Platform: Matlab, Scripts
- Useful Figure Management Utilities
- License: Shareware
- Price:


This package contains 3 trivial figure management utilities I can't live without: SHOWMETHEFIGS Allow user to cycle between all figures by hitting any key FILLSCREEN Set a figure size to completely fill the screen. FIGSHIFT Cascades current figure window away from previous figure
- Publisher: Scott Hirsch
- Date Released: 07-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts


