Generation of plot using data set
2 ビュー (過去 30 日間)
古いコメントを表示
if I have 5 parameter (memory, Battery Backup, processing Capability, screen size, camera) to optimize with reference to cost of handset how to write code in matlab & how to plot a graph for that
0 件のコメント
回答 (1 件)
Ajay Kumar
2020 年 1 月 7 日
編集済み: Ajay Kumar
2020 年 1 月 7 日
T = xlsread('process.xlsx');
names = {'Memory'; 'Battery Backup'; 'Processing Capability'; 'Screen Size'; 'Camera'};
for i = 1 : length(T)
hold on
plot(T(i,:),'DisplayName',['Mobile - ', num2str(i)]);
end
set(gca,'xtick',[1:length(names)],'xticklabel',names)
hold off
legend show
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!