Raise a variable to the power of another variable in Simulink

  • Follow


Hi,

Does anyone know if I can raise a variable to the power of another variable in Simulink by using blocks? E.g. I am using an Embedded MATLAB function block to do this y=V.^m, but I am having some problems during simulation and I would prefer it if I could implement that plainly with simple blocks.

Thank you in advance,
AL
0
Reply Angeliki 9/27/2010 10:08:04 PM

"Angeliki " <angela7lekka@hotmail.com> wrote in message <i7r4k4$rfj$1@fred.mathworks.com>...
> Hi,
> 
> Does anyone know if I can raise a variable to the power of another variable in Simulink by using blocks? E.g. I am using an Embedded MATLAB function block to do this y=V.^m, but I am having some problems during simulation and I would prefer it if I could implement that plainly with simple blocks.
> 
> Thank you in advance,
> AL

Hi,

Math function Block,

http://www.mathworks.com/help/toolbox/simulink/slref/mathfunction.html

use the "power" option.

HTH,

Guy
0
Reply Guy 9/28/2010 12:23:05 AM


> Hi,
> 
> Math function Block,
> 
> http://www.mathworks.com/help/toolbox/simulink/slref/mathfunction.html
> 
> use the "power" option.
> 
> HTH,
> 
> Guy

Thanks Guy,

math function block worked perfectly!
0
Reply Angeliki 9/28/2010 1:57:21 PM

2 Replies
755 Views

(page loaded in 0.033 seconds)

Similiar Articles:













7/19/2012 4:16:46 PM


Reply: