How to Scatter Plot a data set reading from a single column of excel file?
3 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
KSSV
2017 年 11 月 1 日
num = xlsread('newdata.xlsx', 'B:B');
x = 1:length(num) ;
scatter(x,num) ;
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!