Error "Argument to dynamic structure reference must evaluate to a valid field name." What did I wrong?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Coginator
el 11 de Jul. de 2022
Comentada: Coginator
el 12 de Jul. de 2022
Hi,
I became the error "Argument to dynamic structure reference must evaluate to a valid field name."
I tried a lot to set right the dots but I dont know why it isnt working. Can someone help me?
here's the code:
T_1=linspace(0,160,160);
T=T_1+273.15;
A= -181.587;
B= 8632.13;
C= 24.7981;
D= 0;
H12= 1./(exp(A+(B./T)+(C*log.(T))+(D*T)));
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 11 de Jul. de 2022
Editada: Fangjun Jiang
el 11 de Jul. de 2022
T_1=linspace(0,160,160);
T=T_1+273.15;
A= -181.587;
B= 8632.13;
C= 24.7981;
D= 0;
H12= 1./(exp(A+(B./T)+(C*log(T))+(D*T)))
3 comentarios
Más respuestas (1)
Steven Lord
el 11 de Jul. de 2022
(C*log.(T))
You have an unnecessary . here.
2 comentarios
Image Analyst
el 11 de Jul. de 2022
H12= 1./(exp(A+(B./T)+(C*log.(T))+(D*T)));
% ^ Look up above. Get rid of this dot!
% Should be
H12= 1./(exp(A+(B./T)+(C*log(T))+(D*T)));
Also, the same as the answer below.
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!