pbj0812의 코딩 일기

[MATLAB] while 문을 이용한 조건 두개 예시 본문

ComputerLanguage_Program/MATLAB(OCTAVE)

[MATLAB] while 문을 이용한 조건 두개 예시

pbj0812 2018. 9. 3. 23:09

clear all; clc; close all;

        wait_time=input('write update time(sec) : ')

        num_file=textread('G:\2016_대지진\m_file\00__gui\test_empty_data\tsunami.txt');

        length_file=size(num_file);

        length_file=length_file(1);

        a1=num_file(end,1);

        a2=num_file(end,2);

        aaa=(a1~=a2);

        bbb=(length_file<2)

        ccc=aaa+bbb;

while ccc~=0

    disp('no signal...');

        pause(wait_time);

        num_file=textread('G:\2016_대지진\m_file\00__gui\test_empty_data\tsunami.txt');

        length_file=size(num_file);

        length_file=length_file(1);

        a1=num_file(end,1);

        a2=num_file(end,2);

        aaa=(a1~=a2);

        bbb=(length_file<2)

        ccc=aaa+bbb;

end

    disp('warning')

Comments