MATLAB Answers

How to scatter plot a row of matrix against it's row number?

1 view (last 30 days)
Simran
Simran on 25 Jan 2020
Edited: KALYAN ACHARJYA on 25 Jan 2020
I have a cell array(400*3000), which has 3000 sequences, how do I plot only 170th row against row no. in a graph, the desired result is scatter plot at 170th position.

  2 Comments

Star Strider
Star Strider on 25 Jan 2020
What is in the cell array?
Cell arrays can contain anything, so plotting the 170th row may not be straightforward.
Simran
Simran on 25 Jan 2020
Normal array will also work for my problem, all rows contain numbers normalized in 0 to 1.

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 25 Jan 2020
Edited: KALYAN ACHARJYA on 25 Jan 2020
data=rand(400,3000);
for i=1:170
scatter(repelem(i,3000),data(i,:));
hold on
end
??

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.