Question

Je voudrais prendre le plafond du signal de Simulink (bibliothèque Xilinx).Donc, si par exemple, la valeur du signal est de 1,5, la sortie serait 2.

Toute suggestion sur comment puis-je la mettre en œuvre à Simulink?

En outre, je suis désireux de comprendre l'approche de la manière dont la fonction ronde de plancher peut également être mise en œuvre.

Tous les blocs de la bibliothèque Xilinx qui le fait?

merci

Kiran

Était-ce utile?

La solution

Not sure there's a block for it, but you could use an mcode block I think and put the Matlab ceil function in it.

Or you could build a block which uses Slice blocks to separate the integer and fractional parts and increment the integer part if the fractional part is not zero.

For rounding and flooring, the Cast block will round or truncate for you, you have to manage the output type yourself though.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top