Combining vectors to make a matrix

3 views (last 30 days)
Elijah Shepherd
Elijah Shepherd on 7 Apr 2020
Answered: madhan ravi on 7 Apr 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(:)]

Answers (1)

madhan ravi
madhan ravi on 7 Apr 2020
guessi = guessrow.*guesscolumn

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!