matlab 中sin60 怎么打,已知60=x*2*sin(pi*74/(4*x)),用matlab解此方程的语句该怎么写?

改为这样,y值要分别赋给f。 options = optimset('display','off'); sol=[]; y=30:0.5:74; for ii=1:length(y); f=@(x)y(ii)-x.*2.*sin(pi*74./(4*x)); sol=[sol,fsolve(f,60,options)]; end sol sol = Columns 1 through 7 23.6711 23.7701 23.8698 23.9701 24.0710 24.1726 24.2749 Columns 8 through 14 24.3779 24.4816 24.5860 24.6911 24.7970 24.9037 25.0111 Columns 15 through 21 25.1193 25.2284 25.3382 25.4489 25.5604 25.6728 25.7861 Columns 22 through 28 25.9003 26.0154 26.1314 26.2484 26.3663 26.4852 26.6052 Columns 29 through 35 26.7261 26.8481 26.9712 27.0954 27.2206 27.3470 27.4746 Columns 36 through 42 27.6033 27.7332 27.8643 27.9967 28.1303 28.2652 28.4015 Columns 43 through 49 28.5391 28.6780 28.8184 28.9602 29.1035 29.2482 29.3945 Columns 50 through 56 29.5423 29.6917 29.8428 29.9954 30.1498 30.3059 30.4638 Columns 57 through 63 30.6235 30.7850 30.9484 31.1138 31.2811 31.4504 31.6218 Columns 64 through 70 31.7953 31.9710 32.1489 32.3290 32.5115 32.6964 32.8837 Columns 71 through 77 33.0734 33.2658 33.4608 33.6584 33.8589 34.0621 34.2683 Columns 78 through 84 34.4774 34.6897 34.9050 35.1236 35.3455 35.5708 35.7996 Columns 85 through 89 36.0321 36.2682 36.5082 36.7521 37.0000 >>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值