How to Scatter Plot a data set reading from a single column of excel file?

2 views (last 30 days)
I read a specific column of data from an excel file using following:
num = xlsread('newdata.xlsx', 'B:B');
While using plot(num), it works fine plotting a line graph where the x-axis is a continuous automatic value and y is the extracted column value. However, when I am trying scatter(num) it gives me Error. Isn't that possible to create scatter plot with a single column data please?

Accepted Answer

KSSV
KSSV on 1 Nov 2017
num = xlsread('newdata.xlsx', 'B:B');
x = 1:length(num) ;
scatter(x,num) ;

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!