How to type in a series in MATLAB

์กฐํšŒ ์ˆ˜: 2 (์ตœ๊ทผ 30์ผ)
Salar
Salar 2013๋…„ 12์›” 1์ผ
๋Œ“๊ธ€: Walter Roberson 2022๋…„ 6์›” 29์ผ
I want to create a function that when I give it some input, it takes those inputs and make those to be the coefficients of a polynomial,let me explain here: for example my input is [1 2 3 4] , so this function should create s^3 + 2s^2 + 3s^1 +4s^0 , so what I was think was to have something like : syms s a; then ask for the value of n; then say num=(a_n)*s^n + (a_n-1)*s^(n-1) + .... a_0*s^0 , I will really appreciate if some of could help me with translating this into a Matlab code, Thanks

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

Walter Roberson
Walter Roberson 2013๋…„ 12์›” 2์ผ

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

Vinod Rajakaruna
Vinod Rajakaruna 2022๋…„ 6์›” 26์ผ
โˆš ๐‘Ž(2.23) 0.3 log10 25 + ๐‘’ 0.4 + (2.698) 2 3
  ๋Œ“๊ธ€ ์ˆ˜: 1
Walter Roberson
Walter Roberson 2022๋…„ 6์›” 29์ผ
You have which cannot possibly appear in a polynomial, so this cannot be an answer to the question that was asked.

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

์นดํ…Œ๊ณ ๋ฆฌ

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

Community Treasure Hunt

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

Start Hunting!

Translated by