MATLAB Answers

How can i visualize an exact column or row only of a matrix?

1 view (last 30 days)
Elias Unk
Elias Unk on 22 Jul 2017
Commented: Elias Unk on 23 Jul 2017
let's say i have a 50 by 70 matrix and i want all the values of the column number 29, how can i do that.

Accepted Answer

Image Analyst
Image Analyst on 22 Jul 2017
Extract from .mat file, then call plot. Try this:
storedStructure = load('features.mat');
myMatrix = storedStructure.B; % Extract matrix from the "B" field of the structure.
plot(myMatrix(:,29), 'b-', 'LineWidth', 2);

More Answers (1)

Walter Roberson
Walter Roberson on 22 Jul 2017
plot( YourMatrix(:,29) )

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!