Combining vectors to make a matrix
3 views (last 30 days)
Show older comments
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(:)]
0 Comments
Answers (1)
See Also
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!