Combining vectors to make a matrix
Afficher commentaires plus anciens
I'm trying to combine a row vector and column vector to get a matrix of certain dimensions. My row vector is of dimensions 1x1440 and column vector is by 1440x1, but when i go to combine the vectors into a matrix, it has resulting dimensions of 1440x2. But i want it to have dimensions of 1440x1440. How would i get this to work?
This is the code I have for what I've done so far. Thanks for any help.
guessrow = linspace(139,150,1440); guessrow = guessrow/norm(guessrow)
guesscolumn = linspace(10,22,1440)'; guesscolumn = guesscolumn/norm(guesscolumn)
guessi = [guessrow(:), guesscolumn(:)]
Réponses (1)
madhan ravi
le 7 Avr 2020
guessi = guessrow.*guesscolumn
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!