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 >>

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页