已知a11=a1;
j=i-1;
aii=ai-cj*bj/ajj;(i=2,3,4……)
其中ai,bj,cj为已知
这种的带字母的要在matlab中怎么实现呢,望各位大神赐教

 Respuesta aceptada

0 votos

%在最前面输入你的a,b,c,D,n的值
a1=input('a1的值为:');
e(1)=a1;%e代表a11数组
D(1)=e(1);
for ii=2:n-1
e(ii)=a(ii)-c(ii-1)*b(ii-1)/e(ii-1);
D(ii)=D(ii-1)*a(ii);
end
是这个意思吗?

Más respuestas (0)

Categorías

Más información sobre 软件开发工具 en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!