From: David Fernandez-F. <dfe...@me...> - 2016-12-01 19:40:37
|
Hello! Thank you for the information. I realized that the version of MATLAB that I was using had the EEGlab plugins installed on it, which were interfering with some of the NBT functions. I removed all the EEGlab folders/subfolders from the path and now everything is working. I appreciate everyone's help. Thank You, David FF On Dec 01, 2016, at 12:17 PM, Simon-Shlomo Poil <poi...@nb...> wrote: Dear David, I assume you are running this Fs = 300; Signal = randn(20*60*Fs,1); highpass = 8; % Highpass corner frequency. lowpass = 13; % Lowpass corner frequency. [Data_filtered] = nbt_filter_fir(Signal, highpass, lowpass, Fs, 2/8); That should work without problems. Best wishes, Simon -- Dr. Simon-Shlomo Poil Co-founder / Chief Technology Officer NBT Analytics BV Amsterdam Health and Technology Center Paasheuvelweg 25 1105BP Amsterdam The Netherlands Mobile number (Swiss): +41 (0)76 399 5809 Mobile number (Dutch): +31 (0) 62 030 7288 Skype: poil.simonshlomo Website: https://www.nbt-analytics.com <http://www.nbt-analytics.com/> 2016-11-30 22:22 GMT+01:00 Michael Melnychuk <mel...@gm...>: 'Firls' not girls....sry autocorrect On Wednesday, November 30, 2016, Michael Melnychuk <mel...@gm...> wrote: > Hard to say without seeing the data but I would try removing the transpose > operator in girls at line 80 or something along those lines and go from > there. > > On Wednesday, November 30, 2016, David Fernandez-Fidalgo < > dfe...@me... > <javascript:_e(%7B%7D,'cvml','dfe...@me...');>> wrote: > >> Hello: >> >> My name is David Fernandez-Fidalgo and I am a researcher at the National >> Intrepid Center of Excellence (NICoE) at Walter Reed Naval Hospital in >> Bethesda, MD. I have been trying to teach myself how to use NBT to perform >> DFA on MEG data and calculate the DFA exponent for various datasets. I have >> been using the information and examples on the wiki page ( >> https://www.nbtwiki.net/doku.php?id=tutorial:detrended_fluc >> tuation_analysis_dfa#computing_dfa_using_nbt) to learn how to remove >> artifacts from the signal and perform DFA. I keep running into an error >> every time I try to use the "nbt_filter_fir" function to filter a matrix of >> random numbers "Fs = 300; Signal = randn(20*60*Fs,1);" from the example >> provided in the wiki. The error I keep observing is: >> >> "??? Error using ==> mtimes >> Inner matrix dimensions must agree. >> >> Error in ==> firls at 80 >> cos_ints = [omega; sin((1:N)' * omega)]; >> >> Error in ==> fir1 at 98 >> hh = firls(L-1,ff,aa); >> >> Error in ==> nbt_filter_fir at 108 >> b = fir1(floor(fir_order*fs),[hp lp]/(fs/2)); >> >> Error in ==> test at 14 >> [Data_filtered] = nbt_filter_fir(Signal, highpass, lowpass, Fs, 2/8);" >> >> Do you have any suggestions for how I can resolve this error and filter >> the dataset? >> >> Thank You, >> David FF >> ------------------------------------------------------------ >> ------------------ >> _______________________________________________ >> The NBT help mailing list. >> >> Visit our webpage: >> http://www.nbtwiki.net >> >> LinkedIn: http://l.nbtwiki.net/nbtlinkedin >> Facebook: http://l.nbtwiki.net/nbtfacebook >> >> Do you need help with NBT?, see >> http://l.nbtwiki.net/HRIMOF >> >> Get involved, see >> http://l.nbtwiki.net/HRf5Ns >> >> To unsubscribe write a mail to nbtoolbox-help-request@lists. >> sourceforge.net with 'unsubscribe' in the subject line (without ' ') >> Or go to the mail-list administration page to unsubscribe: >> https://lists.sourceforge.net/lists/listinfo/nbtoolbox-help >> >> >> ------------------------------------------------------------ ------------------ _______________________________________________ The NBT help mailing list. Visit our webpage: http://www.nbtwiki.net LinkedIn: http://l.nbtwiki.net/nbtlinkedin Facebook: http://l.nbtwiki.net/nbtfacebook Do you need help with NBT?, see http://l.nbtwiki.net/HRIMOF Get involved, see http://l.nbtwiki.net/HRf5Ns To unsubscribe write a mail to nbtoolbox-help-request@lists. sourceforge.net with 'unsubscribe' in the subject line (without ' ') Or go to the mail-list administration page to unsubscribe: https://lists.sourceforge.net/lists/listinfo/nbtoolbox-help -- NBT Analytics BV http://www.nbt-analytics.com IMPORTANT: This message and any attachments are intended for the individual or entity named above. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not read, copy, use or disclose this communication to others; also please notify the sender by replying to this message, and then delete it from your system. Thank you. ------------------------------------------------------------------------------ _______________________________________________ The NBT help mailing list. Visit our webpage: http://www.nbtwiki.net LinkedIn: http://l.nbtwiki.net/nbtlinkedin Facebook: http://l.nbtwiki.net/nbtfacebook Do you need help with NBT?, see http://l.nbtwiki.net/HRIMOF Get involved, see http://l.nbtwiki.net/HRf5Ns To unsubscribe write a mail to nbt...@li... with 'unsubscribe' in the subject line (without ' ') Or go to the mail-list administration page to unsubscribe: https://lists.sourceforge.net/lists/listinfo/nbtoolbox-help |