find the first column of a 3x3 matrix

375 views (last 30 days)
I have a3x3 matrix. I need the vector x to be the first column of the matrix. thank you
david

Accepted Answer

Bish Erbas
Bish Erbas on 24 Sep 2018
A = rand(3,3);
x = A(:,1);

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!