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!