Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
17 Nov 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Lidierth, Malcolm

Jose
You will get Java exceptions if you try to create a JFrame ('adding a window to a container') so jcontrol does not allow that.

You can however, build very complex GUIs using a MATLAB figure or uipanel as parent and I hope to include tabbed panes once TWM provide full support for these. An advantage of using MATLAB containers is that you can mix and match jcontrols and MATLAB components including graphics in a single figure/panel.

Apart from using a java window, there are few restrictions. You can for example create a uipanel, add a swing JPanel to it, populate that with a JScrollPane and add a JTree to it along with a set of JButtons in the JPanel.
Regards
Malcolm

17 Nov 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Ramon, Jose Miguel

Great work! I have a question about the problems with the containers in R2008b onwards. As you comment before, hgjavacomponent may not parent other hgjavacomponent. Does this mean I cannot use Jframe as parent for my Javacomponents in R2008b onwards?

Therefore the only one way to contain JavaComponents is a figure, isn’t it? Is there any restriction in terms of including Javacomponent if I use a figure as parent? Can I build complex GUI’s using figure as parent?

Thanks in advance

30 Oct 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Spencer
Great. I have had a few enquiries about TDT. How about sharing your importer?
As far as those errors are concerned - if they are in sigTOOL, please supply details.
Regards
Malcolm

29 Oct 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Chen, Spencer

I just started using this tool. Very impressive Malcolm. I like the look and feel of the GUI. Much better than the other toolbox I have also been playing around with (FIND).

Anyways, I implemented my custom importer for TDT data using the Neuroshare interface. The data loaded okay, but in the process of using features of this toolbox, I find myself having to debug through several show-stopping errors. A little anonying and frustrating, but I speak Matlab enough to be able to work through them.

06 Oct 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Lidierth, Malcolm

Ritesh
See the undocumented MATLAB uitab and uitabgroup functions for tabbed panes
For widgets, I may have misunderstood. Jcontrols can be positioned using normalized units 0 to 1. MATLAB then does the work.

06 Oct 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Lidierth, Malcolm

PS That should be uitab + uitabgroup

02 Oct 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Ryan
It is easy to add more parameters. Just edit the 'names' cell array in the EditStructureGUI function in menu_InterfaceTo_wave_clus.m. E.g.

names={'stdmin',...
    'stdmax',...
    ................
    ................
    'max_spk',...
    'max_clus'};

Remember though, that these values are reset via set_parameters_simulation.m when you load a new channel so editing set_parameters_simulation.m may be more convenient.

As for batch processing, that could probably be included if there were enough demand but there are a lot of other things on the TODO list.

30 Sep 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Maloney, Ryan

Hi Malcolm,
Thanks for sharing this great new package, it's an excellent time-saver and very user-friendly: it's been a long time coming on the Matlab platform.
I agree with Yunguo that it would be good to batch process spike sorting via the interface with wave_clus.
One suggestion though, there are some parameters not on the Edit Parameters GUI (such as the max. no. of clusters allowed) that could be included. It wasn't clear to me at first that they'd need to be edited directly in the set_parameters_simulation.m file included with wave_clus.
Regards,
Ryan M

30 Sep 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Maloney, Ryan

27 Aug 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Sood, Ritesh

I have only run the demo so far (which worked well), but it's surely a very useful contribution and I would like to thank the author for the same.

Although I haven't programmed awt/swing, or even much java, I recently wrote a fairly complex gui in perl-Gtk2, and I've some experience in gui programming.

My first question is if it's possible to have tabbed panes like we do in web browsers and a number of other guis? I don't think Matlab has it natively, and I'm sure swing has it. So how about our jobjects?

Second, one very desirable (even essential) feature in gui toolkits is widget packing. One programs the relative layout of the widgets and the toolkit computes the absolute positions and dimensions. I mean why should I be bothered with the arithmetic, let the computer do the math. Now that we can access swing via jobjects, is it possible to do automatic widget packing?

Thanks for your help!

18 Aug 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Flor,
You would need to write an import function that would create a MAT file containing the variables required by sigTOOL. The Programmer Guide contains details
Regards
ML

17 Aug 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Flor

 How do I import signals that are already in .mat format? Thanks

16 Jun 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Xiping
I think I see what is happening. The option to export data in PDF, TIF etc, and also to Send data to Excel, Sigmaplot etc is available in a sigTOOL result view showing e.g. averages. The GUI manual gives details.
It is not supported in a data view which is the view you appear to be clicking on. It could be if there were enough demand.
Regards
Malcolm

15 Jun 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Zhan, Xiping

Thank you. Malcolm,
It seems to me that there is no choice of Excel, SigmaPlot or Origin when right-click the mouse. There is only Signal browser and sgTool open automatically.

Besides, it is not consistent to export figures as pdf,tif,or ai,etc.

15 Jun 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Xiping
Just right-click and choose Send To. That gives you a choice of Excel, SigmaPlot and Origin and will export the data to those (if installed).

14 Jun 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Zhan, Xiping

It's nice software. But how to export the graph into a spreadsheet style data or send ActiveX.

07 Apr 2009 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Jveer

way too much effort required to integrate within guide created GUIs. can't be asked.

13 Mar 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Wave_clus 2.0 is supported in the latest version of sigTOOL at http://sigtool.sourceforge.net/

09 Mar 2009 filtfilthd Zero-phase forwards/backwards filtering using SP toolbox dfilt filter objects Author: Malcolm Lidierth Keith

Provides a solution to the limited resolution of the matlab transfer function filter forms when calling filtfilt. Filter objects can be created with zero pole gain prototypes, converted to second order sections and avoid the numerical precision problems associated with [b,a] transfer functions but allow use of filtfilt to eliminate phase distortion.

24 Feb 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

the new version Wave_clus (2.0) does not work with the sigTOOL:

http://www.vis.caltech.edu/~rodri/Wave_clus/Wave_clus_home.htm

20 Feb 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth costa, ste

thanks, Malcom

I already have complete version of sigTOOL, but this was not the correct place where having a discussion about.

best,
Ste

20 Feb 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

For ste costa

The file import functions are not included in this demo version because TMW no longer allows dlls to be included on MATLAB Cental submissions.

To get the full version of sigTOOL, complete with the import functions you require visit

http://sigtool.sourceforge.net/

20 Feb 2009 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth costa, ste

Hi all,

I think sigTOOL can be a powerfull tool for analyzing neural data, but I could not explore its full potentiality because I'm not able to import my plexon dataset into it (until now I visualised data in wav format, but without events information):

I use Matlab R2008a and after launching sigTOOL gui, I run this:

>> ns_SetLibrary(which('nsPlxLibrary.dll'))

it return:

ans =

          0

After, I try to import *****.plx file but loading bar freezes at 13%; matlab command displays this errors:

??? In an assignment A(:) = B, the number of elements in A and B
must be the same.

Error in ==> ImportNS at 171
                imp.adc((k-1)*blocksize+1:(k-1)*blocksize+count)=data;

Error in ==> scImport at 50
targetfile=funchandle(fullfile(pathname, name), targetpath);

Error in ==> menu_ImportPLX at 38
    scImport(@ImportNS, '*.plx');

??? Error while evaluating uimenu Callback

can someone help me????

thank a lot!
Ste

05 Dec 2008 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Lidierth, Malcolm

Thierry. Many thanks. Demo file now restored to zip.

27 Nov 2008 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Dalon, Thierry

I could not find any demo in the package.(jControldemo missing?)

20 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Zhao, Lingyun

Good tool and easy to use, especially it include a lot of file format. This is unique among the neural softwares.

10 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Yunguo
To the best of my knowledge, this is the the only place where batch processing is presently not supported. I should have stated that in the documentation.
sigTOOL does not support Wave_clus for batch processing because it works through the Wave_clus GUI: Wave_clus parameters etc are extracted from the GUI userdata areas and user interaction is assumed. Wave_clus was designed to run as a stand-alone GUI, not in sigTOOL so it would take some work to include batch processing.
However, Wave_clus does provide batch processing routines and, in principle, unsupervised batch processing could be added to sigTOOL if enough users requested it.
Regards
Malcolm
 

09 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

Dear Malcolm,

It is very nice that sigTOOL integrates the wave_clus to do spike-sorting. But I just wonder how can I do batch spike-sorting of multiple-channel recordings by using sigTOOL. Specifically, I would like to do is:
1. let sigTOOL to open mutiple files ( that I think it is possible to use menu batch process).
2. use Wave_clus to sort these files (each file contains multiple spiking channels).
3. save sorted spikes to a new channels and save file, then do next file and so on.

I have tried to use batch process in the menu, but not much success. It would be very kind of you if you can comment on this point. I think a lot of people out there would like to have the capability of doing batch spiking.

Thanks in advance.

Yunguo

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

Dear Malcolm,

Thank you so much. The cluster.exe can run in console of Windows XP 64 bit.

I change the PCWIN32 to PCWIN64, then wave_clus is working fine now.

Thanks again!!!

Yunguo

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

OK.
The problem is 64 bit Windows. Wave_clus relies on a 32-bit Windows exe file.
Can that be run in a DOS window on 64-bit Windows?
Is it safe to try?
I do not know, so I will leave those questions to you.

If it is OK to run the cluster.exe file, then:
Put a break point at line 34 in run_cluster and check the value of handles.par.system which (I think) will be 'PCWIN64'. If it is, change line 35 of run_cluster to

case {'PCWIN', 'PCWIN64'}
(at present, the switch is defaulting to Linux).

Save the change and exit the debugger, then try again.

Good luck
Malcolm

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

Dear Malcolm,

Thanks a lot.

I did what you said here. But the same error messages appeared

BY the way, I use Windows XP 64-bit,

Thanks again.

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Yunguo
That breakpoint should be line 7 not 8.
ML

06 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Yunguo

I am glad you like it.

menu_InterfaceTo_Wave_clus changes the present working directory to the system temprary folder so that temporary files created by wave_clus are written to that. It looks as though the directory is changing before the wave_clus run_cluster function is called- hence the file not found warnings and eventual error.

Put a breakpoint at line 8 of run_cluster and run clustering from the wave_clus GUI. When the debugger halts exection, try pwd and tempdir at the command line:
K>> pwd
ans =
C:\DOCUME~1\ML\LOCALS~1\Temp
K>> tempdir
ans =
C:\DOCUME~1\ML\LOCALS~1\Temp\

If these are not the same that explains the errors. Next you need to find why they are not the same because the command
cd(tempdir());
is issued in menu_InterfaceTo_Wave_clus. Are there any other routines running that might be changing the working directory?

The "'.' is not recognized as an internal or external command,
operable program or batch file. " may be related as the cluster executable is also copied to tempdir.
What OS are you using?

As a temporary fix, you may find the typing
K>>cd(tempdir());
when you hit the break point solves your problem.

05 Nov 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Yunguo

Excellent MATLAB-based package I've ever seen for neural signal processing.

But I did encounter a problem with spiking sorting (using wave_clus under the menu "Spike Train". Can anyone tell me what the problem is? Thanks a lot in advance. The errors are:

Warning: File 'data_wc.dg_01.lab' not found.
> In run_cluster at 7
  In menu_InterfaceTo_wave_clus>Run at 235
Warning: File 'data_wc.dg_01' not found.
> In run_cluster at 8
  In menu_InterfaceTo_wave_clus>Run at 235
'.' is not recognized as an internal or external command,
operable program or batch file.
??? Error using ==> load
Unable to read file data_wc.dg_01.lab: No such file or directory.

Error in ==> run_cluster at 57
clu=load([fname '.dg_01.lab']);

Error in ==> menu_InterfaceTo_wave_clus>Run at 235
    [clu,tree]=run_cluster(handles);

??? Error while evaluating uicontrol Callback

24 Sep 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Lidierth, Malcolm

Evan,
The 'Pirate Copy' message should only appear if you are a commercial user and have not followed the message contents:
"sigTOOL is free to academic and not-for-profit organizations only.
This PC appears to be on a commercial network.
Please contact sigTOOL@kcl.ac.uk".

23 Sep 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth Thomas, Evan

Seems good but but the 'Pirate copy' popup that keeps appearing renders it unusable.

28 Jul 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth .., lee

wow, this is AWESOME. I just started coding some of my own matlab analysis programs for plexon data, this program saves A LOT of time. Seems very well made, easy to install, and very intuitive interface. Does everything and more than NEX and does it in matlab so adds a lot of versatility. You can interface with it with your own code. It even has a a trigger filter which is just what I needed for some data (cuts all odd or even or nth triggers from data if you want it to).

28 Jul 2008 sigTOOL Demo Demo version of the sigTOOL analysis package for neuroscience. Author: Malcolm Lidierth hi, hello

05 Jul 2008 Sinc Resample SincResample resamples signals to arbitrary lengths/frequencies and/or timeshifts them Author: Malcolm Lidierth Pavlic, Ted

The description of this script makes it sound like an improved version fo the INTERPFT function (which just calls fft, pads, and then calls ifft).

I put together a modified INTERPFTW that allows you to resample aliases from different Nyquist windows. In other words, instead of padding the FFT purely at its ends, it splits the padding so that some is at DC and some is at the ends (i.e., it uses a bandpass filter rather than a low-pass filter).

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=20524&objectType=file

I imagine that you could make a similar modification to your script.

08 Jun 2008 Sinc Resample SincResample resamples signals to arbitrary lengths/frequencies and/or timeshifts them Author: Malcolm Lidierth Carraeo, James

Useful, thanks.

06 Mar 2008 Sinc Resample SincResample resamples signals to arbitrary lengths/frequencies and/or timeshifts them Author: Malcolm Lidierth vvv, karan

ok

20 Feb 2008 MATLAB SON Library Import functions for reading/writing CED Spike2 data files Author: Malcolm Lidierth s, h

SONGetADCData.c is missing so compile.m fails to work.
It's not clear which functions are SON32 and which are SON2. Suggest to put 32 suffix to distinguish.
The help document is not self-containting and should be upgraded

18 Feb 2008 filtfilthd Zero-phase forwards/backwards filtering using SP toolbox dfilt filter objects Author: Malcolm Lidierth r., ueli

exactly what i needed

13 Nov 2007 Sinc Resample SincResample resamples signals to arbitrary lengths/frequencies and/or timeshifts them Author: Malcolm Lidierth yong-soo, cho

I am korean user that is interested in this file

23 Oct 2007 filtfilthd Zero-phase forwards/backwards filtering using SP toolbox dfilt filter objects Author: Malcolm Lidierth Wahl, Gunter

13 Aug 2007 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Ortner, Mathias

I like this work : however I got a problem when trying the demo,

here is my udate of the javacomponent.m that made it work

if ( isa(hParent, 'figure') || ...
     isa(hParent, 'uicontainer') || ...
     isa(hParent, 'uiflowcontainer') || ...
     isa(hParent, 'uigridcontainer') ||...
     isa(hParent, 'hgjavacomponent'))
    parentIsFigure = true;
    peer = get(ancestor(parent,'figure'),'JavaFrame');
elseif isa(hParent, 'uitoolbar')
    peer = get(parent,'JavaContainer');
    if isempty(peer)
        drawnow;
        peer = get(parent,'JavaContainer');
    end
else
        error('MATLAB:javacomponent:InvalidParentHandle', 'Invalid parent handle\n%s', usage)
end

18 Jul 2007 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Clark, Nick

Wonderful work! The author emailed me with a fix to get this working if you're a 7.0.1 user. See the following:

*In your copy of MATLAB's javacomponent.m , change lines 66-68 to this:
if isa(handle(parent), 'figure') || isa(handle(parent), 'uicontainer')
    parentIsFigure = true;
    peer = get(ancestor(parent, 'figure' ), 'JavaFrame');

*In jcontrolDemo:
Comment out lines 46-48
and save/run it

15 Jul 2007 Using java swing components in MATLAB A custom class that eases the use of java.awt and javax.swing components in MATLAB Author: Malcolm Lidierth Altman, Yair

Excellent submission. Simple, easy to understand, richly documented and very effective. A great source of knowledge and examples for anyone interested in Java-Matlab integration as well as in object-oriented Matlab programming. This submission is one of, if not the, best that I've seen in fully utilizing Matlab's class properties (with some undocumented Matlab functionality), subscripted referencing & assignment, and method overloading. Aside from class methods which are missing here, this is a great example for Matlab OOP.

07 May 2007 Data cursors for figure window Data cursor support for multiple axes in a fugure Author: Malcolm Lidierth chen, charli

very good and useful. However, the cursor will meet some problems when you zoom in/out, or move the figure.

 

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