photo

pefernan


EPFL Lausanne

Actif depuis 2017

Followers: 0   Following: 0

Message

Statistiques

MATLAB Answers

2 Questions
0 Réponses

RANG
248 250
of 297 503

RÉPUTATION
0

CONTRIBUTIONS
2 Questions
0 Réponses

ACCEPTATION DE VOS RÉPONSES
50.0%

VOTES REÇUS
0

RANG
 of 20 449

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 159 017

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


Can't use subs(sym_array,vector) because Matlab assumes I want to replace the first component of sym_array and not the whole array
x = sym('x',[1 2 3]) subs(x,[1 2 3]) returns: [1,2,3,x2,x2,x2,x3,x3,x3] How do I fix this to return [1,2,3]?

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


Error evaluating symbolic expressions with symbolic arrays.
I get an error when I run this code (R2017a): x = sym('x',[1 3]); y = x(1) + x(2) + x(3); x(1)=1; x(2)=1; ...

presque 8 ans il y a | 1 réponse | 0

1

réponse