Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
11 Nov 2009 Spectrogram Scope Live updating spectrogram display. Author: Scott Hirsch Bizkevelci, Erdal

10 Nov 2009 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch neve, sophie

well, that is sad you do not accept any number in the titles of the columns... for example, if you want to have
frequency1 = 10 as a title
...

27 Oct 2009 dualcursor Add dual vertical cursors to a plot. Author: Scott Hirsch Roy

If you have multiple plots in one figure how do you select which one to select?
Really nice work.

02 Sep 2009 xlswritefig Write a MATLAB figure to a Microsoft Excel spreadsheet. Author: Scott Hirsch Anand

Hello Scott,

Thanks for the M-File. Its very helpful.

I had few queries:
1. Can we resize the figure in Excel automatically.
2. I am running a loop, so the same set of instructions are iterated. Is there any way by which we could advance the cell where the figure has to be saved.

Any help is appreciated.

Thanks
Anand

27 Aug 2009 xlswritefig Write a MATLAB figure to a Microsoft Excel spreadsheet. Author: Scott Hirsch Lindberg, Peter

27 Aug 2009 xlswritefig Write a MATLAB figure to a Microsoft Excel spreadsheet. Author: Scott Hirsch Lindberg, Peter

I've added a "add a new worksheet function":

WorkSheets = Excel.sheets;
message = struct('message',{''},'identifier',{''});

try
    Sheets = Excel.ActiveWorkBook.Sheets;
    target_sheet = get(Sheets, 'Item', sheetname);
catch %#ok<CTCH> Suppress so that this function works in releases without MException
    % Error if the sheet doesn't exist. It would be nice to create it, but
    % I'm too lazy.
    % The alternative to try/catch is to call xlsfinfo to see if the sheet exists, but
    % that's really slow.
    disp(['Sheet ' sheetname ' does not exist!']);
    Sheet = invoke(WorkSheets,'Add')
    Sheet.name = sheetname
    target_sheet = Sheet
end;

20 Aug 2009 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch Xavier

Hi, I want to know if there are some way to write in excel 2007 format (*.xlsx)

24 Jul 2009 timetick Time formatted tick labels. Author: Scott Hirsch Newman, Rob

My bad - just found the datetick() function. Please ignore previous post...

24 Jul 2009 timetick Time formatted tick labels. Author: Scott Hirsch Newman, Rob

What about if you have a long time series (years) and want output in YYYY-MM-DD? This function only seems to be relevant for second/microsecond time periods????? Any ideas? Thanks.

15 Jun 2009 dragndrop This allows you to easily add drag and drop capabilities to any GUI. Author: Scott Hirsch huijing

15 Jun 2009 dragndrop This allows you to easily add drag and drop capabilities to any GUI. Author: Scott Hirsch huijing

27 May 2009 Data space to figure units conversion A utility function to simplify use of annotation function Author: Scott Hirsch Maxie

Very useful!
Can add text at the tail of the arrow using 'textarrow' ?
Thanks!

13 May 2009 HP 8510C Demo Demonstration code for communication with an HP 8510C network analyzer Author: Scott Hirsch Ronaldo

Thanks!!! It was very helpful!!!

08 May 2009 timetick Time formatted tick labels. Author: Scott Hirsch Hithesh

To resolve the error mentioned in 2nd reply, just use timetick
without any input. Default is x axis.
(credit: Scott Hirsch)

15 Apr 2009 dualcursor Add dual vertical cursors to a plot. Author: Scott Hirsch Scott

Is it possible to have this function be "modal". For instance, if I wanted to use this function in a script that asks the user to set the lower and upper bounds of interest using dualcursor, how do I have my code stop and wait for the user to slide the vertical bars to the appropriate locations? I guess I need a button added to the plot so that the program waits until the limits are set before the user hits the "submit" button?

04 Apr 2009 dualcursor Add dual vertical cursors to a plot. Author: Scott Hirsch Wong, Hoi

It seems like the program doesn't like figures being a child of uipanel:

??? Error using ==> set
There is no 'WindowButtonDownFcn' property in the 'uipanel' class.

Error in ==> dualcursor at 688
        set(get(axh,'Parent'),'WindowButtonDownFcn','','WindowButtonUpFcn','')

Error in ==> dualcursor at 220
        dualcursor('off',[],[],[],axh);

Error in ==> episodesPanel>slider_strip_Callback at 147
dualcursor([1 2], handles.panel.episodes.infoDisplay.axes_electrogram);
 
??? Error while evaluating uicontrol Callback

??? Error using ==> uicontextmenu
An object of class uicontextmenu, can not be a child of class uipanel.

Error in ==> dualcursor at 325
        cmenu = uicontextmenu('Parent',get(axh,'Parent'));

Error in ==> episodesPanel>slider_strip_Callback at 147
dualcursor([1 2], handles.panel.episodes.infoDisplay.axes_electrogram);
 

26 Mar 2009 Time Series Viewer Interactive tool for plotting time series. Author: Scott Hirsch Tweddell, Steve

Potentially a brilliant asset to MatLab, I’m currently working with large amounts of flight data and a GUI similar to this with a printing/copy function would be very useful. I would have thought this tool would be a natural extension of the Aerospace blockset.

Are there any new updates?

23 Mar 2009 datalabel Interactive labeling of data points on a plot. Author: Scott Hirsch Akshay

Awesome!! Thanks!

20 Mar 2009 Data space to figure units conversion A utility function to simplify use of annotation function Author: Scott Hirsch Luo, Yan

working for me. great

31 Jan 2009 timetick Time formatted tick labels. Author: Scott Hirsch Fay, Alex

I aded some more edits, I can't seem to upload them, though.

31 Jan 2009 timetick Time formatted tick labels. Author: Scott Hirsch Fay, Alex

30 Jan 2009 timetick Time formatted tick labels. Author: Scott Hirsch Fay, Alex

And now in English.
fmt = ['%02d:%02d:%0' totalwidth '.' precision 'f'];

The leading zero also works on fixed-point. For example, if the seconds format is '%07.4f', a seconds value of 0.440 seconds comes out as '00.4400'.

27 Oct 2008 MATLAB Microsoft Media Player The Microsoft Media Player embedded in a MATLAB Figure. Author: Scott Hirsch Maurizio

It' very useful, but I can't use it with new Matlab R2008.
As Bengali said, I've substituted the ProgID with "WMPlayer.OCX.7", but It's not enough. Could someone tell me the other modification I have to do?
Thanks a lot

17 Oct 2008 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch djr, djr

24 Sep 2008 Data space to figure units conversion A utility function to simplify use of annotation function Author: Scott Hirsch Brunner, Matt

Works fine for me. Thanks for sharing.

04 Aug 2008 linelabel Identify a plotted line by clicking on it. Author: Scott Hirsch Santoro, Maurizio

Very good!

30 Jul 2008 dualcursor Add dual vertical cursors to a plot. Author: Scott Hirsch billard, nicolas

Excellent. Only 1 thing : When i compile a soft which calls dualcursor, it turns. But it canno't turn when i deploy the soft on target pc with matlab runtime. May be it's due to the crypto aspect of dualcursor which is again crypted by compilation. Is it a solution for it?

06 Jun 2008 Spectrogram Scope Live updating spectrogram display. Author: Scott Hirsch Wan, Kina

Useful

04 Jun 2008 Spectrum Scope Easily compute and display a real-time FFT. Author: Scott Hirsch Mohammadikish, Maryam

07 May 2008 Spectrum Scope Easily compute and display a real-time FFT. Author: Scott Hirsch andika, venantius

good

30 Apr 2008 Useful (but trivial) Figure Management Utilities 3 Useful figure management utilities. Author: Scott Hirsch Campbell, Rose

Simple yet effective! Thanks

09 Apr 2008 MATLAB Microsoft Media Player The Microsoft Media Player embedded in a MATLAB Figure. Author: Scott Hirsch 377, Bengali

For R14sp1 and above try 'WMPlayer.OCX.7' as ProgID.
Should work.

06 Apr 2008 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch R, D

Does not work as written

17 Mar 2008 Data space to figure units conversion A utility function to simplify use of annotation function Author: Scott Hirsch Junge, Till

Your function doesn't work with equal axes. example:
function bla()
close all
a=pi/4;
r=0:1e-2:1;
f=@(r) 1/2*a*log(1+(tan(a*r)).^2);
createfigure(r,f(r),f)

function createfigure(X1, Y1,f)
%CREATEFIGURE(X1,Y1)
% X1: vector of x data
% Y1: vector of y data

% Auto-generated by MATLAB on 17-Mar-2008 14:49:27

% Create figure
figure1 = figure('XVisual',...
    '0x22 (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)');

% Create axes
axis1=axes('Parent',figure1);
box('on');
grid('on');
hold('all');
axis equal
ylim([0,.3])
xlim([0,1])

% Create plot
plot(X1,Y1);
r=.7
the=r*pi/4
[vpx,vpy]= ds2nfu(gca,[r r],[0,f(r)]);
annotation(gcf,'arrow',vpx,vpy);
[nx,ny] = ds2nfu(gca,[r r-.2*sin(the)],[f(r) f(r)+.2*cos(the)]);
annotation(gcf,'arrow',nx,ny);

13 Mar 2008 datalabel Interactive labeling of data points on a plot. Author: Scott Hirsch Masazade, Engin

Very useful, thanks a lot

23 Feb 2008 Acoustic Tracker (Updated) Demonstrate using the Data Acquisition Toolbox to build an application. Author: Scott Hirsch ramil, clayton

guys how couldb i purchase a genuine matlab

19 Feb 2008 Data space to figure units conversion A utility function to simplify use of annotation function Author: Scott Hirsch McClure, Scott

This function does not deal with log axes.

27 Jan 2008 dragndrop This allows you to easily add drag and drop capabilities to any GUI. Author: Scott Hirsch Wang, JK

18 Jan 2008 Real time octave analysis FFT and 3rd octave display of an incoming analog input signal. Author: Scott Hirsch qinglin, meng

I've not read it carefully,however,from the result of it I think it is good.
The figure it give tells me the voltage ?spectram and Octave.That is good.

17 Jan 2008 datalabel Interactive labeling of data points on a plot. Author: Scott Hirsch r, ma

Thank you so much. This is perfect.

13 Jan 2008 Useful (but trivial) Figure Management Utilities 3 Useful figure management utilities. Author: Scott Hirsch Mudigere, Dheevatsa

It ubiquitious..thanks a ton

02 Jan 2008 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch B K, Chandra

Works very well but probably an addition to the functionality could be writing row headers (titles) ?
Maybe there is a way to do it using the current version, but I was unable to do it!

10 Dec 2007 Nested Function Live Stock Ticker An example using nested functions and WSDL to create a live stock-ticker. Author: Scott Hirsch Cantwell, Betsy`

good

15 Nov 2007 Example: Using Nested Functions for Timers Example code from MATLAB News & Notes article on nested functions. Author: Scott Hirsch Wahl, Gunter

A bit more explanation of the way (repetitions?) to call the routine would be nice.

21 Sep 2007 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch Woodworth, Laura

Hi,
Is there any way to get xlswrite to either write to a file name that has been date/time stamped, or write to a generic file name with a worksheet that has been date/time stamped?

The code I am working on is meant to be run multiple times, to generate sets of answers, and I am trying to prevent having to alter the code each time for a unique file name.

Thanks for any help!

Laura

11 Sep 2007 Time Series Viewer Interactive tool for plotting time series. Author: Scott Hirsch rohadi, supri

ok

09 Sep 2007 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch Baudry, Matthieu

23 Jun 2007 datalabel Interactive labeling of data points on a plot. Author: Scott Hirsch Bwick, Elias

Thanks dude. This is exactly what I was looking for. Excellent

08 Jun 2007 xlswrite Easily create an Excel spreadsheet from MATLAB. Author: Scott Hirsch GUINN, LAKISHA

Hi,
Could you please let me know if there is a way to use xlswrite to save to the next empty row. I am trying to use the built-in xlswrite function to save data to an existing excel file. Is there code that will detect the location of the next empty row and save the data there? I tried the following code but it gives me an error: [num txt DataRange]=xlsread(fileName);
[z v]=size(DataRange)
z=z+1%gives the number of the next empty row
range=sprintf('A \b%d',z)%range should start in column A of row
xlswrite(fileName,data,1, range);

Thanks

05 May 2007 Spectrum Scope Easily compute and display a real-time FFT. Author: Scott Hirsch tlb, abdilah

comment utilisé le spectrum scope dans simulink c'est-à-dire comment configurer le spectrum scope

 

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