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

 Réponse acceptée

0 votes

%在最前面输入你的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
是这个意思吗?

Plus de réponses (0)

Catégories

En savoir plus sur 软件开发工具 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!