Why can't I write this row vector?
Ältere Kommentare anzeigen
I simply want a 1x3 row vector like this:
. I tried the following:
. I tried the following:[x(1,3); x(2,3); x(3,3)]
but I got the following error:
Unrecognized function or variable 'x'.
Why? How to sort it out?
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 22 Mär. 2020
Define x somehow before that line, like these examples
x = magic(3)
x = rand(3)
x = randi(100, 3, 3)
or whatever.
3 Kommentare
Armando MAROZZI
am 22 Mär. 2020
Image Analyst
am 22 Mär. 2020
Bearbeitet: Image Analyst
am 22 Mär. 2020
I don't have that toolbox so I don't know what kind of assumptions it makes. I've added it to the product list, which you forgot to do when you created this posting.
What are you going to do after that? How are you going to use x? Or that 3 element, 1-D column vector you're trying to make from the 2-D x matrix?
Armando MAROZZI
am 22 Mär. 2020
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!