赞
踩
clc; clear; close all; axis_length = 100; % 定义参数t的范围 t = 0:0.01:100; % 计算x和y的值 x = t.^2 + 1; y = 4*t - t.^2; % 绘制函数图像 plot(x, y); xlabel('x'); ylabel('y'); title('Plot of the curve x=t^2+1, y=4t-t^2'); grid on; % 设置 x 轴和 y 轴的范围 xlim([-axis_length, axis_length]); ylim([-axis_length, axis_length]); % 显示坐标轴 x 轴和 y 轴
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。