Enquiry about the reason for the program not responding to the entered code
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
When I copy the code (Drude-Lorentz and Debye-Lorentz models for the dielectric constant of metals and water) it appears in the command window (Unrecognized function or variable 'lambda'. Why?
0 comentarios
Respuestas (1)
Steven Lord
el 30 de Sept. de 2020
Editada: Steven Lord
el 30 de Sept. de 2020
Are you copying the body of the function from this File Exchange submission into the Command Window? Note that the function requires lambda as one of its inputs. If you're running the code it contains without defining lambda, how should MATLAB know what value it should use for that variable?
Rather than copying the body of the function why not add it to your MATLAB installation using Add-On Explorer and then just call the function with the input arguments it requires?
[And no, I'm not psychic. One of the "Entire Website" files Answers suggested to me in the See Also sidebar was that File Exchange submission.]
2 comentarios
Steven Lord
el 30 de Sept. de 2020
The author of the File Exchange submission claims it only needs MATLAB. If you were calling it correctly but didn't have a product it required I would expect a different error message.
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing 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!