
Problemas con iteraciones en MATLAB
Publicado por victor hugo ortiz flores (1 intervención) el 24/03/2015 16:49:16
Hola
Necesito realizar el siguiente for
for k=1:7
tetha(k)=[tetha0(k), tetha0es(k) tetha1(k) tetha2(k) tetha3(k) tetha3es(k) tetha4(k)]';
alpha(k)=eye(7)*diff(tetha(k),2);
w2(k)=eye(7)*(diff(tetha(k)).^2);
end
y=[tetha,alpha,w2]:
Sin embargo al correr el programa me salen 2 errores principales: 1) Unbalanced or unexpected parenthesis or bracket. y 2) In an assignment A(I) = B, the number of elements in B and I must be the same.
Las tetha son valores númericos
Me podrían ayudar a solucionar el problema, por favor
Necesito realizar el siguiente for
for k=1:7
tetha(k)=[tetha0(k), tetha0es(k) tetha1(k) tetha2(k) tetha3(k) tetha3es(k) tetha4(k)]';
alpha(k)=eye(7)*diff(tetha(k),2);
w2(k)=eye(7)*(diff(tetha(k)).^2);
end
y=[tetha,alpha,w2]:
Sin embargo al correr el programa me salen 2 errores principales: 1) Unbalanced or unexpected parenthesis or bracket. y 2) In an assignment A(I) = B, the number of elements in B and I must be the same.
Las tetha son valores númericos
Me podrían ayudar a solucionar el problema, por favor
Valora esta pregunta


0