How to use 3D surface from cftool in Simulink lookup table?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alex Cascatau
el 20 de Ag. de 2018
Editada: Alex Cascatau
el 29 de Ag. de 2018
Hello! I am designig a battery model with an internal resistance which is dependant on two variables: SoC and temperature. I have interpolated the data I have with MATLAB's curve fitting toolbox and was able to generate the desired 3D map of that dependence (see attached picture). My question is how can I use that map now for my Simulink model? As input parameters I will have SoC and temperature and the resistance in ohm should be the output. However, I have not been able to find a convenient way to export the data in a suitable lookup table (or similarly useful, my first guess was that I should use a 2-D lookup table in this case) in Simulink. What approach do you suggest for this? Thanks in advance
0 comentarios
Respuesta aceptada
Ville Kumlander
el 29 de Ag. de 2018
Hi! I had the same kind of problem in a different topic. I had measurement data of two variables giving the third one as wished output. I interpolated that measurement data with 'scatteredInterpolant' at predefined points. Then I was able to insert those values at given points into 2-D lookup table. This solution is not using the 3D map/surface as an input to lookup table, but it was accurate enough to overcome my problem.
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear and Nonlinear Regression 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!