fig2_next.m

来自「这是用于工程测量进行大坝变形分析的软件」· M 代码 · 共 32 行

M
32
字号
if nihe_number==0
    if draw_nihe_current_point~=No
        draw_nihe_current_point=draw_nihe_current_point+1;
    end   
else
    if draw_nihe_current_point~=length(nihe_number)
       draw_nihe_current_point=draw_nihe_current_point+1;
    end
end
x0=month_time([begin_num_want_to_nihe:end_num_want_to_nihe]);
if get(radio2_1,'value')==1%用直线拟合========================================================================================================
    if nihe_number==0
            y0=project_distchange([begin_num_want_to_nihe:end_num_want_to_nihe],draw_nihe_current_point); %把第i个点的位移量赋给y
            linefunction(x0,y0,draw_nihe_current_point);
    elseif length(nihe_number)==1
            y0=project_distchange([begin_num_want_to_nihe:end_num_want_to_nihe],nihe_number); %把第i个点的位移量赋给y
            linefunction(x0,y0,nihe_number(draw_nihe_current_point));          
    elseif length(nihe_number)>1
            y0=project_distchange([begin_num_want_to_nihe:end_num_want_to_nihe],nihe_number(draw_nihe_current_point)); %把第i个点的位移量赋给y
            linefunction(x0,y0,nihe_number(draw_nihe_current_point));
    end
elseif get(radio2_2,'value')==1%==========================用样条拟合==============================================================================
    before_cigema_squre=str2num(get(edit8,'string'));
    y0=project_distchange([begin_num_want_to_nihe:end_num_want_to_nihe],draw_nihe_current_point); %把第i个点的位移量赋给y
    if nihe_number==0
            polyfunction(x0,y0,before_cigema_squre,draw_nihe_current_point);
    elseif length(nihe_number)==1
            polyfunction(x0,y0,before_cigema_squre,nihe_number(draw_nihe_current_point));
    elseif length(nihe_number)>1
            polyfunction(x0,y0,before_cigema_squre,nihe_number(draw_nihe_current_point));
    end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?