Skip to content
Snippets Groups Projects
Commit d5966627 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

first 2 varargin only for gdat

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1818 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 378cf4ba
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,12 @@ function [trace,error,varargout] = gdat(shot,data_type,varargin)
% shot: shot number
% data_type: type of the required data.( see above)
%
% optional arguments valid for all values of data_type:
% optional arguments valid for all values of data_type (not passed on to loadMACHINEdata function):
%
% varargin{1}: 0 => no plot (default), 1 => plot
% varargin{2}: machine name 'JET', 'TCV' (default)
%
% Additional input arguments for specific traces
% Additional input arguments for specific traces (passed on to loadMACHINEdata function)
%
% data_type=sxr or ece:
% varargin{3}: channel status 1= unread yet, 0= read
......@@ -78,10 +78,10 @@ machine='TCV';
if (nargineff>=4 & ~isempty(varargin{2})); machine=varargin{2}; end
% load data from specified machine
if nargineff<=2
if nargineff<=4
eval(['[trace,error,varargout] = load' machine 'data(shot,data_type);']);
else
eval(['[trace,error,varargout] = load' machine 'data(shot,data_type,varargin);']);
eval(['[trace,error,varargout] = load' machine 'data(shot,data_type,varargin(3:end));']);
end
% PLOT DATA (if required)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment