How do you express this function in MATLAB syntax ?
์กฐํ ์: 3 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
Emre Can Usengul
2020๋
6์ 9์ผ
๋๊ธ: Walter Roberson
2020๋
6์ 9์ผ
๐(๐ฅ) = e^x + sin(5x)
How do you express this function in MATLAB syntax ?
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
KSSV
2020๋
6์ 9์ผ
ํธ์ง: KSSV
2020๋
6์ 9์ผ
f = exp(x)+sin(5*x) ; % define x before
f = @(x) exp(x)+sin(5*x) ; % call by f(value) This is called Anonymous function
๋๊ธ ์: 5
Walter Roberson
2020๋
6์ 9์ผ
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Annotations์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
์ ํ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!