Borrar filtros
Borrar filtros

Assign numeric value to symbolic function a(k) for k=0

2 visualizaciones (últimos 30 días)
Danylo
Danylo el 24 de Ag. de 2015
Respondida: Walter Roberson el 25 de Ag. de 2015
I have a symbolic matrix:
bb(k)=[1,0;0,aa(k)];
I need to assign aa(0)=2 such that when I type bb(0) I get:
bb(0)=[1,0;0,2];
Also, aa(1)=3 such that:
bb(1)=[1,0;0,3];
How can this be achieved? Thanks!

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Ag. de 2015
syms bb(k)
aa = [2; 3];
bb(k) = [1;0;0,aa(k+1)];

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by