Generation of plot using data set

2 vues (au cours des 30 derniers jours)
anurag tiwari
anurag tiwari le 7 Jan 2020
Modifié(e) : Ajay Kumar le 7 Jan 2020
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

Réponses (1)

Ajay Kumar
Ajay Kumar le 7 Jan 2020
Modifié(e) : Ajay Kumar le 7 Jan 2020
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

Catégories

En savoir plus sur Graphics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by