반전공자

Octave 기본문법 (Range, data structure 본문

데이터분석/데테_인공지능

Octave 기본문법 (Range, data structure

하연01 2021. 6. 5. 06:43

특정 범위 수열 생성 (간격조절 범위수열)

>> 1:5
ans =

   1   2   3   4   5

>> 1:0.1:5
ans =

 Columns 1 through 13:

    1.0000    1.1000    1.2000    1.3000    1.4000    1.5000    1.6000    1.7000    1.8000    1.9000    2.0000    2.1000    2.2000

 Columns 14 through 26:

    2.3000    2.4000    2.5000    2.6000    2.7000    2.8000    2.9000    3.0000    3.1000    3.2000    3.3000    3.4000    3.5000

 Columns 27 through 39:

    3.6000    3.7000    3.8000    3.9000    4.0000    4.1000    4.2000    4.3000    4.4000    4.5000    4.6000    4.7000    4.8000

 Columns 40 and 41:

    4.9000    5.0000

 

 

 

data structure - 자료구조 정의

 

>> student.namae = "Gildong Hong"
student =

  scalar structure containing the fields:

    namae = Gildong Hong

>> student.stuno = 12345
student =

  scalar structure containing the fields:

    namae = Gildong Hong
    stuno = 12345

>> student.birth = "19871023"
student =

  scalar structure containing the fields:

    namae = Gildong Hong
    stuno = 12345
    birth = 19871023

 

'데이터분석 > 데테_인공지능' 카테고리의 다른 글

One-hot encoding  (0) 2021.06.16
Octave (함수 정의, 사용하는 방법)  (0) 2021.06.05
Octave 기본 문법 (class(), Matrics)  (0) 2021.06.04
AI - 한글 영화평 데이터  (0) 2021.05.09
WordCloud  (0) 2021.05.07