How to update lookup table during simulation? Simulink
    9 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Marcin Zmuda
 il 27 Giu 2022
  
    
    
    
    
    Risposto: patrick1704
      
 il 30 Giu 2022
            Hello,
I have vector X (length), Y (width) and matix Z (locals high), which desciber road for car simulation. For locals high Z I use lookup table and bearkpoints 1 is X and bearkpoints 2 is Y. Center of mass for car is describer by (x, y, z). I want to add some value in each step of simulation to Z matrix after car is pasing lokal z. How to update data in lookup table?
Best regards
Marcin
0 Commenti
Risposta accettata
  patrick1704
      
 il 30 Giu 2022
        Hi there,
I assume that you want to update the breakpoint data, right? Simulink generally supports dynamic lookup tables, i.e. tables where you provide the breakpoint data as inputs: Approximate a one-dimensional function using dynamic table - Simulink - MathWorks Deutschland
Depending on your problem, it may however be easier to implement the loopup method directly yourself in Simulink or use a call to Matlab via the Matlab Function block (Include MATLAB code in models that generate embeddable C code - Simulink - MathWorks Deutschland) or S-Functions, where you can specify the breakpoint data as input.
Thus, you would have to check what is most suited and efficient for your problem.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su General Applications in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

