Hanning function missing when no Signal Processing Toolbox

I have been trying to import data into my brain storm 2.0. When I am in the program, while uder the Data manger, no sub indexes are created. Brain Storm does not let me import any new data. Also, I have got the following error in Matlab, when trying to import data.

% ---------------------- Confirm or Create a Database --------------------------
% verify the existence of a database and a default databases
UserDefault = make_default_database(0); % only check the current database
??? Undefined function or variable ‘hanning’.

Error in ==> /Applications/MATLAB_SV13/toolbox/BST_2p0_09Jul2004/Toolbox/make_default_study.m
On line 79 ==> TimeSeries = [[hanning(50);zeros(50,1)], [zeros(25,1);hanning(50);zeros(25,1)], …

Error in ==> /Applications/MATLAB_SV13/toolbox/BST_2p0_09Jul2004/Toolbox/make_default_database.m
On line 273 ==> make_default_study(STUDY_NAME,SUBJECT_NAME);

Error in ==> /Applications/MATLAB_SV13/toolbox/BST_2p0_09Jul2004/startup.m
On line 390 ==> UserDefault = make_default_database(0); % only check the current database

Undefined function or variable ‘hanning’.
EDU>>

I am using Matlab 6.5 v13 student version on a g4 mac.
Do you have any ideas? Thanks for your time.
Michael

Hi Michael,

Looks like Matlab could not find the ‘hanning’ function which is called the first time you start up BrainStorm. Indeed, the software creates some demo and dummy data files and database so that newcomers can be able to play around BsT functions and GUIs right away.

Hanning function is part of the Matlab signal processing toolbox. It seems that maybe it’s a bit too restrictive to require the SP toolbox at this stage of BsT, given that most of our functions do not require it. Therefore, we’ll try to make a bypass of hanning in upcoming update of the soft. Please stay tuned.

In the meantime, you may create a dummy hanning function somewhere in your Matlab path which would look like :

function out = hanning(N)

out = sin(pi*[1:N]/N)

Hope this helps.