Info

此问题已关闭。 请重新打开它进行编辑或回答。

not getting the correct graph

4 次查看(过去 30 天)
suchismita
suchismita 2011-6-20
关闭: MATLAB Answer Bot 2021-8-20
hello sir,i m trying to do some coding.and i have written the code for plotting the graph like below: suppose
L=45.8471
the code i ve written is
ylabel('life');
title('maximum');hold on;grid on;
bar(L);
my problem is i am getting such a graph whose y axis value is correct but in x axis instead of coming in a bar form it is coming in a expanded version i mean covering the whole area.i want it in a particular instant .plzz help..is there any method to represent it in percentage form in y-axis.??plzz help sir.
expecting a favorable reply.
suchismita

回答(1 个)

Paulo Silva
Paulo Silva 2011-6-20
Have you tried Walter suggestion bar(G ./ sum(G) .* 100)
  1 个评论
suchismita
suchismita 2011-6-21
yes sir.i tried this.but the graph is coming something like,its covered the whole area.i mean i m getting such an blue color image covering the total x-axis & y-axis.if u dont mind sir plz give me ur mail id i will send u the image i m getting as i cant attach the image here.plzz help .expecting a favorable reply.
thanking u Suchismita

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by