matlab Xiamen University Lecture Notes

% mat matlab in behalf of the most basic types of variables: numeric and character
eg:

 a=[{1} {'b'} {2} {'m'} {3}];
      v=cell2mat(a(1,1))
      v=1
      g=cell2mat(a(1,2))
      g=b

 

% For cycle i will not in general be assigned, otherwise it will affect the circulation, but may operate
% if based on equal, greater than, less than and equal to judge whether swith Usually, adapted to separate a variable operating space and operating process time
% matlab function in addition is the set path which, in general, matlab call functions is to find (you need to add so when you add eeglab) in the set path and the current path in
% cd path can enter this path in
% [abc] = xlsread ( ' firetletter', 'sheet1') this is a function to call the Excel matlab inside, a contains all the numbers, b contains all the characters, c is cellular type variable contains all data
% strcmp ( 'a', ' b') which is a string comparison functions, a and b are the same is determined, if they are consistent, the logic returns vector 1, otherwise 0.
the first position may be a Cell, then determines all values in the cell and whether the second argument
% find () returns a value greater than zero for all rows and columns

Guess you like

Origin www.cnblogs.com/zxpsyneuroscience/p/12219811.html