Changeset 737 in ETALON for CLIO/CTR+gfw/CTR.m


Ignore:
Timestamp:
Sep 1, 2017, 6:03:25 PM (7 years ago)
Author:
delerue
Message:

Added double gaussian to GFWnew

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLIO/CTR+gfw/CTR.m

    r541 r737  
    11  function [nu,CTR_spec_1,CTR_spec_N,E_total_1]=CTR(var)
    22% clear all; close all; clc
    3 %    var='PrSelect=1; P_file=''../p20.mat''; PlotFunc=[1 1 1 1 1]; ';
     3%   
    44%PlotFunc:
    55%   1 -- Form factor
     
    2626basefig=0;%base number of figures
    2727icolor='r';%color of lines on plot
     28PlotArgTxt='MarkerSize'; %one manual argument for the plots
     29PlotArgVal=6; %one manual argument for the plots
    2830if (~isempty(var))
    2931disp(var);
     
    8991% imin =find(nu>=3e+11,1);%set max freq
    9092imin=1;
    91 disp(['Emited energy (from 1um to 1mm) equal=' num2str(sum(CTR_spec_N(imin:end))*(omega(2)-omega(1))) ' J'])
     93disp(['Emitted energy (from 1um to 1mm) equal=' num2str(sum(CTR_spec_N(imin:end))*(omega(2)-omega(1))) ' J'])
    9294E_total_1=sum(CTR_spec_N(imin:end))*(omega(2)-omega(1));
    9395if PlotFunc(1)==1
    9496figure(basefig+1)
    95 loglog(3e+8./nu*1e+3,FFT_spec_om,icolor,'linew',2)
     97loglog(3e+8./nu*1e+3,FFT_spec_om,icolor,'linew',2,PlotArgTxt,PlotArgVal)
    9698hold on
    9799% loglog(3e+8./(nu2(1:round(length(nu))))*1e+3,FFT_spec_om,'r','linew',2)
     
    108110if PlotFunc(2)==1
    109111figure(basefig+2)
    110 loglog(c./nu*1e+3,CTR_spec_1*1e+18,icolor,'linew',2)
     112loglog(c./nu*1e+3,CTR_spec_1*1e+18,icolor,'linew',2,PlotArgTxt,PlotArgVal)
    111113hold on
    112114grid on
     
    119121if PlotFunc(3)==1
    120122figure(basefig+3)
    121 semilogy(c./nu*1e+3,CTR_spec_N*1e+18,icolor,'linew',2)
     123semilogy(c./nu*1e+3,CTR_spec_N*1e+18,icolor,'linew',2,PlotArgTxt,PlotArgVal)
    122124set(gca,'fontsize',16)
    123125ylabel('dI/d\omega, [\muJ/THz]')
     
    137139if PlotFunc(4)==1
    138140figure(basefig+4)
    139 plot(time*1e+3,Profile./max(Profile),icolor,'linew',2)
     141plot(time*1e+3,Profile./max(Profile),icolor,'linew',2,PlotArgTxt,PlotArgVal)
    140142set(gca,'fontsize',16)
    141143title(['Profile, fwhm=' num2str(pulse_len_ps) ' ps'])
Note: See TracChangeset for help on using the changeset viewer.