matlab程序设计第三章课后习题答案.docxVIP

  • 63
  • 0
  • 约1.87千字
  • 约 10页
  • 2020-07-18 发布于江苏
  • 举报
p138第 6 题 在同一坐标轴中绘制下列两条曲线并标注两曲线交叉点。 t=0:0.01:pi; x1=t; y1=2*x1-0.5; x2=sin(3*t).*cos(t); y2=sin(3*t).*sin(t); plot(x1,y1,r-,x2,y2,g-) axis([-1,2,-1.5,1]) hold on s=solve(y=2*x-0.5,x=sin(3*t)*cos(t),y=sin(3*t)*sin(t)); plot(double(s.x),double(s.y),*); 截图: p366 第 4 题 绘制极坐标曲线 ,并分析 对曲线形状的 影响。 function [ output_args ] = Untitled2( input_args ) %UNTITLED2 Summary of this function goes here % Detailed explanation goes here theta=0:0.01:2*pi; a=input( 请输入 a 的值: ); b=input( 请输入 b 的值: ); n=input( 请输入 n 的值: ); rho=a*sin(b+n*theta); polar(theta,rho, k ); end 下面以 a=1 , b=1 , n=1 的极坐标图形为基础来分析 a、

文档评论(0)

1亿VIP精品文档

相关文档