Files
matlab-learning/c5_5_9.m
2025-10-10 17:29:33 +08:00

10 lines
259 B
Matlab

x=0:0.1:100;
y=10*x.*x;
subplot(2,2,1);plot(x,y);
title('plot(x,y)');grid on;
subplot(2,2,2);semilogx(x,y);
title('semilogx(x,y)');grid on;
subplot(2,2,3);semilogy(x,y);
title('semilogy(x,y)');grid on;
subplot(2,2,4);loglog(x,y);
title('loglog(x,y)');grid on;