ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

create a vector using short hand notations

์กฐํšŒ ์ˆ˜: 3 (์ตœ๊ทผ 30์ผ)
N/A
N/A 2019๋…„ 2์›” 1์ผ
ํŽธ์ง‘: N/A 2019๋…„ 2์›” 1์ผ
? = 1, 1/3 , 1/5 , 1/7 , 1/9 , 1/11 , 1/13
this is what I wrote, y= linspace(1,1/13,7)
this didn't come out right because the spaces between the numbers are not consistent. so can someone please help me write this vector in short hand notation?

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

Steven Lord
Steven Lord 2019๋…„ 2์›” 1์ผ
Since I suspect this may be a homework assignment or part of one I'll only give a hint: your vector elements aren't linearly spaced, but their denominators are. Using that I could define y using thirteen characters, the first two of which are "y=".
  ๋Œ“๊ธ€ ์ˆ˜: 1
N/A
N/A 2019๋…„ 2์›” 1์ผ
ํŽธ์ง‘: N/A 2019๋…„ 2์›” 1์ผ
just to add to the question...
there are two vectors x= [35, 32, 29, 26, 23, 20, 17] and y=[1, 1/3, 1/5, 1/7, 1/9, 1/11, 1/13]
the question asks to do z= (x^(1/y)+y^(1/x)/(x-y))-((x^y+y^x)/x*y) using element by element calculations
my answer was z= (x.^(1./y)+y.^(1./x)./(x-y))-((x.^y+y.^x)./x.*y))
could you please let me know if my answer is correct!

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

์นดํ…Œ๊ณ ๋ฆฌ

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

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by