Home > front end >  How to draw with semiology in MATLAB?
How to draw with semiology in MATLAB?

Time:09-22

I have below the following information:

Q = [16,32,64,128,256,512,1024];
y = [9     9     9     9     5     0     0]*0.25;
y1 = [45    37    25    21     5     0     0]*0.25;

After multiplication with 0.25, they became as below

y enter image description here

y2 enter image description here

and the above Q is the same

enter image description here

when I use the semiology plot function as below

semilogy(Q,y,Q,y1)
xlabel('Q oder');
ylabel('Coverage area m^2');
grid on;

I saw the x and y axis are different than what I have in Q and Y as shown below. Does this make sense? Do I apply it in the wrong way? If yes, May you assist me?

enter image description here

CodePudding user response:

Check out xticks.

xticks(Q)

You may also be interested in xticklabels.

I don't have MATLAB here so I can't illustrate it, but it is what you are after.

  • Related