Borrar filtros
Borrar filtros

Sensitivity Analysis Matlab simulink

7 visualizaciones (últimos 30 días)
NN
NN el 8 de Feb. de 2023
Respondida: Swaraj el 6 de Abr. de 2023
When i try to evaluat ethe simulink model for sensitivity analysis, i am getting the below error.
The specified key is not present in this container.
Kindly help
  1 comentario
Kirthi
Kirthi el 8 de Feb. de 2023
Hello NN,
I think your issue can be better resolved with more information, perhaps the model and what parameter you are using as the key. From the error message, it looks like you are trying to access a key (parameter) that does not exist in your container, such as a structure, map, or cell array.
To resolve this issue, first try verifying if the key you are trying to access is valid and exists in the container. You can use the "isfield" or "iskey" functions to check if a particular field or key exists in a structure or map, respectively, before trying to access it.
If you are sure that the key you have specified exists, then attach your model which will help in resolving your issue further.
Hope this helps !

Iniciar sesión para comentar.

Respuestas (1)

Swaraj
Swaraj el 6 de Abr. de 2023
Hi,
I understand that you are getting an error “The specified key is not present in this container.
This error that you are getting specifies that you are trying to access a key in a Map where the key does not exist. Before accessing any key in a map, try to check if that key exists or not.
You can make use of “iskey” function to do so.
Go through your model and try to find where you are accessing the map with some key and use the “iskey” method at those places.
Let me know if you still face the issue.
Thanks!!

Categorías

Más información sobre Dictionaries en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by