A code that will allow me to input "n" functions depending on the dimension of the system...?

1 visualización (últimos 30 días)
Hi all, I want to write a code that will ask the user to input as many functions as a pre-assigned input n. Here is my code so far:
function [] = Lyapunov1(k,c,n,N,alpha,x0,y0)
for count00 = 1:n
x{count00} = input('enter variable: ','s') %n variables
end
for count0 = 1:n
f{count0} = input('enter f: ','s');%n functions
end
However afterwards I want to use syms so I can differentiate these functions etc, in terms of the n variables I am using. Where am I going wrong? I'm very new to this, any help would be appreciated.

Respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by