์ฑ„ํƒ๋œ ๋‹ต๋ณ€

KSSV
KSSV 2020๋…„ 6์›” 9์ผ
ํŽธ์ง‘: KSSV 2020๋…„ 6์›” 9์ผ

1 ๊ฐœ ์ถ”์ฒœ

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

Emre Can Usengul
Emre Can Usengul 2020๋…„ 6์›” 9์ผ
Can you type how can I write on MATLAB code. Because I wrote this and I had an error.
KSSV
KSSV 2020๋…„ 6์›” 9์ผ
Show us what you tried...and tell us the error.
Emre Can Usengul
Emre Can Usengul 2020๋…„ 6์›” 9์ผ
f = exp(x)+sin(5*x) ;
f = @(x) exp(x)+sin(5*x) ;
like tihs and there is error.
How can I type it. I want this code.
KSSV
KSSV 2020๋…„ 6์›” 9์ผ
I gave comments...did you folllow those comments?
Walter Roberson
Walter Roberson 2020๋…„ 6์›” 9์ผ
f = exp(x)+sin(5*x) ;
would be an error if you had not defined x before.

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์ถ”๊ฐ€ ๋‹ต๋ณ€ (0๊ฐœ)

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ Annotations์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

ํƒœ๊ทธ

์งˆ๋ฌธ:

2020๋…„ 6์›” 9์ผ

๋Œ“๊ธ€:

2020๋…„ 6์›” 9์ผ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by