photo

pefernan


EPFL Lausanne

Active since 2017

Followers: 0   Following: 0

Message

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
248,203
of 297,457

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
50.0%

VOTES RECEIVED
0

RANK
 of 20,438

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 158,938

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

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]?

8 years ago | 1 answer | 0

1

answer

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; ...

8 years ago | 1 answer | 0

1

answer