Generation of plot using data set

3 次查看(过去 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

回答(1 个)

Ajay Kumar
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

类别

Help CenterFile Exchange 中查找有关 Graphics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by