Can someone help me fix my axis?
Afficher commentaires plus anciens
function [] =FFAplot(a,b,k)
a=[2000 1000 4000];
b=[30000 40000 50000];
k=[-.3 -.1 -.4];
for T=1:100
P=1/T;
Q1=b(1)+((a(1)/k(1))*(1-(-log(1-P))^k(1)));
Q2=b(2)+((a(2)/k(2))*(1-(-log(1-P))^k(2)));
Q3=b(3)+((a(3)/k(3))*(1-(-log(1-P))^k(3)));
end
figure(1)
plot(T,Q1,'b')
hold on
plot(T,Q2,'r')
plot(T,Q3,'y')
hold off
grid
axis([10^0 10^2 10^4 10^6])
xlabel('Return period(yr)')
ylabel('Flood magnitude(cfs)')
legend('stream 1','stream 2',...
'stream3','Location','NorthEast')
end

This is what my code produces, can someone help me so that the y axis will display 10^4 through 10^6 instead of 1*10^5 through 10*10^5
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!