일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Tableau
- ionehotencoding
- input
- Udemy
- konlpy
- 데이터 분석
- Okt
- Python
- 인공지능
- 시각화
- 태블로
- 데이터
- selenium
- 머신러닝
- 파이썬
- SQL
- pandas
- 데이터분석
- scikit-learn
- iNT
- numpy
- Word Cloud
- 크롤링
- 형태소분석기
- pyspark
Archives
- Today
- Total
반전공자
Octave (함수 정의, 사용하는 방법) 본문
hello world 출력 함수
>> function printHelloWorld
printf("hello world\n")
endfunction
>> printHelloWorld
hello world
>> printHelloWorld()
hello world
[ 함수의 return value를 지정하는 방법 ]
hello world를 return 하는 함수
>> function str = getHWStr()
str = "Hello World\n"
endfunction
>> printf(getHWStr())
str = Hello World
Hello World
[ 함수의 parameter를 지정하는 방법 ]
>> function str = concatStr(str1, str2)
str = strcat(str1, str2)
endfunction
>> printf(concatStr("hello", "world\n"))
str = helloworld
helloworld
'데이터분석 > 데테_인공지능' 카테고리의 다른 글
One-hot encoding with Scikit-learn (0) | 2021.06.20 |
---|---|
One-hot encoding (0) | 2021.06.16 |
Octave 기본문법 (Range, data structure (0) | 2021.06.05 |
Octave 기본 문법 (class(), Matrics) (0) | 2021.06.04 |
AI - 한글 영화평 데이터 (0) | 2021.05.09 |