How to...live script

์กฐํšŒ ์ˆ˜: 12 (์ตœ๊ทผ 30์ผ)
Benjamin Johnston
Benjamin Johnston 2020๋…„ 9์›” 26์ผ
๋Œ“๊ธ€: Walter Roberson 2020๋…„ 9์›” 26์ผ
Develop a live script to calculate:
๐‘= ((5x-2)*ln(sqrt(x))) / ((x^(2)-1)*(sin(x)))
Calculate N when
(a) x = 2.4,
(b) x = 12.1,
(c) x = 0.07,
and (d) x = 1.
  ๋Œ“๊ธ€ ์ˆ˜: 5
Benjamin Johnston
Benjamin Johnston 2020๋…„ 9์›” 26์ผ
I'm just struggling on how to translate the equation from the hw onto matlab.
Walter Roberson
Walter Roberson 2020๋…„ 9์›” 26์ผ
Could you post an image of the equation to be programmed ?

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

๋‹ต๋ณ€ (1๊ฐœ)

Steven Lord
Steven Lord 2020๋…„ 9์›” 26์ผ
When you're checking with your calculator, are you taking the sine of x in degrees (for which the corresponding function in MATLAB would be sind) or in radians (for which sin is the correct function)?
You should also be careful with your parentheses.
x1 = 1/(2)*2 % divide 1 by 2 and multiply the result by 2 = 1
x2 = 1/(2*2) % multiply 2 by 2 and divide 1 by the result = 0.25
  ๋Œ“๊ธ€ ์ˆ˜: 1
Benjamin Johnston
Benjamin Johnston 2020๋…„ 9์›” 26์ผ
I've checked both in degrees and radians mode. Idk what else to do with my parenthesis, I feel like I've tried everything. thanks though.

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

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Structural Mechanics์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by