Difference between r1.13 and the current
@@ -14,14 +14,14 @@
}}}mod(a, b)
a를 b로 나눈 나머지
a를 b로 나눈 [[나머지,remainder]](중 [[정수나눗셈,integer_division]]의 나머지)
모든 변수 지우고 초기화?
{{{
clear all
}}}
벡터
벡터 // [[벡터,vector]]
{{{a=[1 2 3 4]
}}}
@@ -29,18 +29,18 @@
{{{a=[시작 인덱스:간격:끝 인덱스]
}}}
벡터의 크기
벡터의 크기 // i.e. [[길이,length]]
{{{length(a)
}}}
벡터의 각 원소끼리 곱셈/나눗셈 - point-wise operation
벡터의 각 원소끼리 곱셈/나눗셈 - point-wise operation // point-wise_operation pointwise_operation(w)
{{{a.*b
a./b
}}}
익명함수 (lambda??) 함수명 = @(arguments) body;
익명함수 (lambda??) : 함수명 = @(arguments) body;
{{{circarea=@(r)pi*r.^2;
}}}
@@ -53,14 +53,15 @@
ex. 0 1 1 0 0 0 1 1= symbolic computing =
CAS관련?
[[symbolic_computing]]
CAS관련? // computer_algebra_system
일단 syms명령으로 여러 심볼을 선언한다. 심볼들은 공백으로 구분.
{{{
syms a b c
}}}
식을 간단히 하려면
식을 간단히 하려면 // [[단순화,simplification]]
{{{simplify(식)
}}}
@@ -79,4 +80,6 @@
Octave Online is a web UI for GNU Octavehttps://octave-online.net/
= (tmp, wikiadmin) =
[[매트랩,MATLAB]] [[옥타브,Octave]]
1. Notes ¶
^은 거듭제곱.
인덱스 1부터 시작.
인덱스 1부터 시작.
기본적으로 소수점 넷째자리까지 표기. 더 표시하고 싶으면
format long원래대로 돌리려면
format
모든 변수 지우고 초기화?
clear all
벡터 // 벡터,vector
a=[1 2 3 4]벡터 만들기
a=[시작 인덱스:간격:끝 인덱스]벡터의 크기 // i.e. 길이,length
length(a)벡터의 각 원소끼리 곱셈/나눗셈 - point-wise operation // point-wise_operation pointwise_operation(w)
a.*b a./b
익명함수 (lambda??) : 함수명 = @(arguments) body;
circarea=@(r)pi*r.^2;
rand(n,m)
구간 내의 숫자로 채워진 n행 m열 행렬을 돌려줌
X=rand(1,8)<0.5;