Print

Print


hi,
I'm trying to use spm to do EEG figures of different electrods and I find that I have to edit the figure properti ony by one.But I wanna know is it possible to aplly the settings of one electrod to other electrodes?For example,I have done the figure of Fz and copied the M-file by using the "show M files"
the script is as follow:
function createaxes(Parent1, X1, YMatrix1)
%CREATEAXES(PARENT1,X1,YMATRIX1)
%  PARENT1:  axes parent
%  X1:  vector of x data
%  YMATRIX1:  matrix of y data

%  Auto-generated by MATLAB on 28-Aug-2010 12:16:01

% Create axes
axes1 = axes('Parent',Parent1,'YDir','reverse','FontSize',16);
% Uncomment the following line to preserve the X-limits of the axes
% xlim([-100 1000]);
% Uncomment the following line to preserve the Y-limits of the axes
% ylim([-4 4]);
hold('all');

% Create multiple lines using matrix input to plot
plot1 = plot(X1,YMatrix1,'Parent',axes1,'LineWidth',3);
set(plot1(1),'DisplayName','S1');
set(plot1(2),'Color',[0 0.5 0],'DisplayName','S2');
set(plot1(3),'Color',[1 0 0],'DisplayName',S3');
set(plot1(4),'Color',[0 0.75 0.75],'DisplayName','S4');

% Create xlabel
xlabel('ms');

% Create ylabel
ylabel('uV');

% Create title
title('Fz','FontSize',16);

---but,how to apply this script to other electrodes like Pz and Cz? Thank you for your help

best regards,
Eva