matlab怎样用for循环x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,567.02175,567.056875,567.1045,567.15175,567.085,567.0995313];for i=1:14 x=x(i) kx=239.20943546/((239.20943546*x-135480.342392404690978
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 14:48:55
matlab怎样用for循环x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,567.02175,567.056875,567.1045,567.15175,567.085,567.0995313];for i=1:14 x=x(i) kx=239.20943546/((239.20943546*x-135480.342392404690978
matlab怎样用for循环
x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,567.02175,567.056875,567.1045,567.15175,567.085,567.0995313];
for i=1:14
x=x(i)
kx=239.20943546/((239.20943546*x-135480.34239240469097801138675924)^2+1)^1.5;
end
kx
求大神知道一下这程序那里有错误
matlab怎样用for循环x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,567.02175,567.056875,567.1045,567.15175,567.085,567.0995313];for i=1:14 x=x(i) kx=239.20943546/((239.20943546*x-135480.342392404690978
这道题不需要for循环呀
x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,567.02175,567.056875,567.1045,567.15175,567.085,567.0995313];
kx=239.20943546./((239.20943546*x-135480.34239240469097801138675924).^2+1).^1.5
运行结果:
kx =
1.0e-03 *
Columns 1 through 7
0.662186381707795 0.398656447781425 0.260228235798709 0.192944098695949 0.144007475910162 0.110161864502044 0.089701671923601
Columns 8 through 14
0.074325291610649 0.062271686339828 0.053235759535329 0.043573800786434 0.036167178263329 0.047221464414296 0.044466533890759