Changeset 326 for trunk/src/civ.m


Ignore:
Timestamp:
Dec 8, 2011, 8:28:38 AM (12 years ago)
Author:
sommeria
Message:

bug corrected in patch matlab. regexrep introduced in uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r325 r326  
    43964396        [Data,errormsg]=civ_matlab(Param);% get the grid of x, y positions set for PIV
    43974397        if ~isempty(errormsg)
    4398             msgbox_uvmat('ERROR',Data.Txt)
     4398            msgbox_uvmat('ERROR',errormsg)
    43994399            return
    44004400        end
     
    44034403        Data.Civ1_V_Diff=Data.Civ1_V_Diff(Data.Civ1_FF==0);
    44044404        DiffVel(irho)=sqrt(mean(Data.Civ1_U_Diff.*Data.Civ1_U_Diff+Data.Civ1_V_Diff.*Data.Civ1_V_Diff))
     4405        NbSites(irho)=Data.Civ1_NbSites/numel(Data.Civ1_U_Diff);
    44054406        Param.Patch1.SmoothingParam=2*Param.Patch1.SmoothingParam;
    44064407    end
    44074408    figure
    4408     plot(SmoothingParam,DiffVel)
     4409    plot(SmoothingParam,DiffVel,'b',SmoothingParam,NbSites,'r')
    44094410    set(handles.TestPatch1,'BackgroundColor',[1 0 0])
    44104411else
Note: See TracChangeset for help on using the changeset viewer.