Effacer les filtres
Effacer les filtres

How i can transfer parameters to the s function.My parameters are matrices

1 vue (au cours des 30 derniers jours)
I am writing a s function. In this function are parameter matrices. How I can calculate a 6 * 6 matrices as derivates in a S function

Réponses (1)

Ankit Bhatnagar
Ankit Bhatnagar le 15 Mai 2017
Modifié(e) : Ankit Bhatnagar le 15 Mai 2017
Hi,
Firstly, you can specify the number of Inputs, Outputs, states and parameters an S-function has using 'mdlInitializeSizes'. Refer the following documentation link for details:
Then get hold of a parameter using 'ssGetSFcnParam'. More details can be found at:
Check the example mentioned in the above link for reference and use the Matrices to calculate product in the S-function.

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by