Combining vectors to make a matrix

1 visualización (últimos 30 días)
Elijah Shepherd
Elijah Shepherd el 7 de Abr. de 2020
Respondida: madhan ravi el 7 de Abr. de 2020
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(:)]

Respuestas (1)

madhan ravi
madhan ravi el 7 de Abr. de 2020
guessi = guessrow.*guesscolumn

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by