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/23 04:39:54
matlab怎样用for循环x=[566.66475,566.719625,566.7735,566.816125,566.862125,566.908375,566.94675,566.98425,

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

matlab中怎样用循环函数 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循环 调取变量 已有变量t1 t2 t3 t4,怎样用for循环的i调取‘ti’ matlab中怎样用for循环求一个矩阵的转置矩阵? Matlab中怎么利用for循环操作函数?Matlab中怎么利用for循环对m={1,2,3,4,5},ym=cos(m*x)实现定义? matlab 中怎样用向量运算代替循环操作 怎样用MATLAB实现 y=sinx/x 的曲线图? 在matlab中如何用for循环来求x^n*exp(x-1)的积分? MATLAB中for循环怎么做?[x ind] = sort(x1);y=y1(ind);m=x>=17.14&x matlab for循环的问题,急要用到两个嵌套循环 for i=1:100,for j=0:10 ,x(i,j)是循环中的变量.我在设定初值时x(1,0)=5;matlab提示出错,说必须为正值或者为逻辑型,该怎么办啊? matlab中for循环for Hp=0:0.1:H if dirm 用MATLAB实现for循环for t=2;S(t)>Pstrong AND t matlab中 按0.1的步长绘制函数y=x*(e的-x次方)在0=老师规定必须用for循环 怎样用matlab简化计算下面的矩阵乘法:for i = 1:n X(i,:) = wcm(i,:) .* IDF(i); end 关于matlab中plotyy命令的疑问(采用数组化编程和for循环的差别)在用matlab中plotyy命令作双纵坐标图时遇到下列问题:(1)当采用for循环时for x=0:0.1:20 y1 =200*exp(-0.05*x)*sin(x) y2 = 0.8*exp(-0.5*x) matlab for 循环语句for n=1:NP;for j=1:1:D;这个语句 j=1:1:D怎么执行循环的,与j=1:D有什么区别,请指教?也就是说for i=1:N是从1~N执行N次循环那么for i=1:x:N又是什么呢 怎样用MATLAB画图 已知x y坐标 matlab 怎么样定义一个向量或者矩阵来存储 for循环得出的函数呢? 比如A(i)=x^i? 还有什么更有效的方法?