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

3 ビュー (過去 30 日間)
Khondokar Fida Hasan
Khondokar Fida Hasan 2017 年 11 月 1 日
回答済み: KSSV 2017 年 11 月 1 日
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?

採用された回答

KSSV
KSSV 2017 年 11 月 1 日
num = xlsread('newdata.xlsx', 'B:B');
x = 1:length(num) ;
scatter(x,num) ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by