I am trying to custom x axis values on my code. Please help
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sam17
il 3 Dic 2017
Risposto: Walter Roberson
il 3 Dic 2017
Here is my code
clc;
clear all;
M= [1 10 100 1000 10000 100000 1000000]
%for short term
delta= [ 3 4 5 6]
cp= delta/3
%For Short Term p
p_short= 2* normcdf(-3*cp)
%Using bionomial distribution for M=1 and M=10
for i=1:2
Y(i,:)=(1-p_short).^M(i)
end
%Using Poission Distribution for M= 100 and higher
for i=3:7
Y(i,:)= exp(-p_short.*M(i));
end
%Plot for Short Term p
Z(:,:)= Y*100
plot(M,Z,'LineWidth',2);
xlabel('Complexity');
set(gca,'xlabeltick',{'1','10','100','1000','10000','1000000'})
ylabel('Rolled Throughputyeild %');
The line set(gca,'xlabeltick',{'1','10','100','1000','10000','1000000'}) does not work.
Here is the error: Error using hg.axes/set The name 'xlabeltick' is not an accessible property for an instance of class 'axes'.
Error in reliability4 (line 21) set(gca,'xlabeltick',{'1','10','100','1000','10000','1000000'})
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!