필터 지우기
필터 지우기

How to increase a symbol in a row matrix?

조회 수: 1 (최근 30일)
RUPAL AGGRAWAL
RUPAL AGGRAWAL 2022년 12월 26일
답변: KSSV 2022년 12월 26일
I am trying to make a function in which by putting the value of n, the number of symbols in that row matrix comes to be n.
For example, Suppose I assign a function coeff(n) = [a1 a2 a3 a4 a5 ... an].
Now if i enter n = 3, coeff(3) = [a1 a2 a3].
I tried starting this way.
function[A] = coeff(n)
Henceforth i tried multiple codes but i failed. Please help. Thank you in advance.

채택된 답변

KSSV
KSSV 2022년 12월 26일
n = 4 ;
syms a [1 n] ;
a
a = 

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by