Joe Exotic
Followers: 0 Following: 0
English, Russian, Spanish
Statistiques
2 Questions
0 MATLAB Answers
RANG
91 290
of 290 180
RÉPUTATION
0
CONTRIBUTIONS
2 Questions
0 MATLAB Answers
ACCEPTATION DE VOS RÉPONSES
100.0%
VOTES REÇUS
0
RANG
of 19 674
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 144 681
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
Feeds
Question
I have a function "f" that returns a 1x2 vector, and I need to make a 3x2 matrix M by stacking the outputs f(x1), f(x2), f(x3) on top of each other, but Matlab won't parse it.
First, I wrote: M = [f(x1); f(x2); f(x3)] That didn't work - it gave me only the first outputs of every f (resulting in a 3x1 ...
plus de 2 ans il y a | 1 réponse | 0
1
réponseQuestion
Why is a statement like "sortrows(A)(2:4)" "invalid array indexing" and how can I circumvent adding an extra line of code to make it work?
I could write: sorted = sortrows(A) sorted(2:4) However this seems clumsy and unnecessarily long to me. How can I compress it...
plus de 2 ans il y a | 1 réponse | 0