is possible to load ASCII file using Deernet with spinach
Posted: Mon Sep 13, 2021 11:53 am
Dear Ilya
I was trying to load ASCII file generated by our spectrometer ( two columns time (ns) and spectrum (magnitude)) and tried to store the associated data in time_axis ( in us) and in deer_trace and to use deernet(deer_trace,time_axis); but it seems not working as I am a getting an error message:
Running startup checks...
Error using deernet>grumble (line 392)
time axis units must be seconds
Error in deernet (line 110)
grumble(input_traces,input_axis,netset);
Error in Untitled (line 11)
deernet(deer_trace,time_axis); drawnow();
Here is my code:
clear all
[data,DR]= uigetfile('*.dat', 'Select a file');%Get data to plot
cd(DR) %set this location as working directory,
filepath = fullfile(DR,data);
S = load(filepath);
time_axis = S(:,1)*1e-3;% in us
deer_trace = S(:,2); % only real spectrum is stored.
deernet(deer_trace,time_axis); drawnow();
Regards
I was trying to load ASCII file generated by our spectrometer ( two columns time (ns) and spectrum (magnitude)) and tried to store the associated data in time_axis ( in us) and in deer_trace and to use deernet(deer_trace,time_axis); but it seems not working as I am a getting an error message:
Running startup checks...
Error using deernet>grumble (line 392)
time axis units must be seconds
Error in deernet (line 110)
grumble(input_traces,input_axis,netset);
Error in Untitled (line 11)
deernet(deer_trace,time_axis); drawnow();
Here is my code:
clear all
[data,DR]= uigetfile('*.dat', 'Select a file');%Get data to plot
cd(DR) %set this location as working directory,
filepath = fullfile(DR,data);
S = load(filepath);
time_axis = S(:,1)*1e-3;% in us
deer_trace = S(:,2); % only real spectrum is stored.
deernet(deer_trace,time_axis); drawnow();
Regards