컴퓨터공학3학년/MATLAB
[MATLAB] 간단한 함수 및 문법
형변환 num2str() 리스트 안에 있는지? strcmp(a,list_b) 잠시 대기 pause(1) 프린트 함수 디스플레이 : 일반 문자열 1개 디스플레이 disp(str) fprintf('hello \n') : file print formatted sprintf('hello') : string print formatted find 함수 find(리스트) : 0이 아닌 리스트의 자리값을 알려줌 반복문 : a를 1부터 1만큼 10까지 for a = 1 : 1 : 10 end while 조건 내용 end 조건문 : if socre > 70 disp('good') elseif score > 60 disp('not good') end switch 변수 case 변수조건 내용 case 변수조건 내용 other..