v = sine wave, how to realize v^2 in simulink ?
Mostrar comentarios más antiguos
Hi,
I'm relatively new to the Simulink world.
I want to simulate a force (output) which changes its value according to following equation.
Fx = G * V^2;
where G is a simple gain block.
and V is the AC voltage.
the block diagram looks some thing like this
sine wave -----> ?????? --------> Gain block ---------> Force
I don't understand how can i realize Voltage sqaure block ??????
regards,
Harry
Respuestas (1)
Mischa Kim
el 11 de Mayo de 2015
Editada: Mischa Kim
el 11 de Mayo de 2015
1 voto
Harry, you could use a multiply block where both inputs are connected to the voltage signal.
Alternatively you can use a user-defined functions block, which looks like this:

To be found in: Simulink library browser > Simulink > User-Defined Functions
2 comentarios
Harry_108
el 11 de Mayo de 2015
Mischa Kim
el 11 de Mayo de 2015
It is. Most likely it is the same block as the one I suggested. Double-click the User-Defined Functions block enter u^2 in the text box and you'll get the block you are showing in your model.
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
