Changeset 737 in ETALON for CLIO/CTR+gfw/CTR.m
- Timestamp:
- Sep 1, 2017, 6:03:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CLIO/CTR+gfw/CTR.m
r541 r737 1 1 function [nu,CTR_spec_1,CTR_spec_N,E_total_1]=CTR(var) 2 2 % clear all; close all; clc 3 % var='PrSelect=1; P_file=''../p20.mat''; PlotFunc=[1 1 1 1 1]; ';3 % 4 4 %PlotFunc: 5 5 % 1 -- Form factor … … 26 26 basefig=0;%base number of figures 27 27 icolor='r';%color of lines on plot 28 PlotArgTxt='MarkerSize'; %one manual argument for the plots 29 PlotArgVal=6; %one manual argument for the plots 28 30 if (~isempty(var)) 29 31 disp(var); … … 89 91 % imin =find(nu>=3e+11,1);%set max freq 90 92 imin=1; 91 disp(['Emit ed energy (from 1um to 1mm) equal=' num2str(sum(CTR_spec_N(imin:end))*(omega(2)-omega(1))) ' J'])93 disp(['Emitted energy (from 1um to 1mm) equal=' num2str(sum(CTR_spec_N(imin:end))*(omega(2)-omega(1))) ' J']) 92 94 E_total_1=sum(CTR_spec_N(imin:end))*(omega(2)-omega(1)); 93 95 if PlotFunc(1)==1 94 96 figure(basefig+1) 95 loglog(3e+8./nu*1e+3,FFT_spec_om,icolor,'linew',2 )97 loglog(3e+8./nu*1e+3,FFT_spec_om,icolor,'linew',2,PlotArgTxt,PlotArgVal) 96 98 hold on 97 99 % loglog(3e+8./(nu2(1:round(length(nu))))*1e+3,FFT_spec_om,'r','linew',2) … … 108 110 if PlotFunc(2)==1 109 111 figure(basefig+2) 110 loglog(c./nu*1e+3,CTR_spec_1*1e+18,icolor,'linew',2 )112 loglog(c./nu*1e+3,CTR_spec_1*1e+18,icolor,'linew',2,PlotArgTxt,PlotArgVal) 111 113 hold on 112 114 grid on … … 119 121 if PlotFunc(3)==1 120 122 figure(basefig+3) 121 semilogy(c./nu*1e+3,CTR_spec_N*1e+18,icolor,'linew',2 )123 semilogy(c./nu*1e+3,CTR_spec_N*1e+18,icolor,'linew',2,PlotArgTxt,PlotArgVal) 122 124 set(gca,'fontsize',16) 123 125 ylabel('dI/d\omega, [\muJ/THz]') … … 137 139 if PlotFunc(4)==1 138 140 figure(basefig+4) 139 plot(time*1e+3,Profile./max(Profile),icolor,'linew',2 )141 plot(time*1e+3,Profile./max(Profile),icolor,'linew',2,PlotArgTxt,PlotArgVal) 140 142 set(gca,'fontsize',16) 141 143 title(['Profile, fwhm=' num2str(pulse_len_ps) ' ps'])
Note: See TracChangeset
for help on using the changeset viewer.