## Implementing Equation in matlab

on 28 Dec 2012

### Azzi Abdelmalek (view profile)

I have to implement park transformation ,the input to park transformation is

Va,Vb,Vc and theta and output is Vq,please tell how to implement this block

Jan Simon

### Jan Simon (view profile)

on 28 Dec 2012

@FIR: Do you think, that you make answering your questions as easy as possible? You did not answer a lot of questions for clarifications in the past. More than 50% of your questions could not be answered sufficiently.

FIR

### FIR (view profile)

on 28 Dec 2012

ok Jan can you please tell what caarification i have to make for this question

Image Analyst

### Image Analyst (view profile)

on 5 Jan 2013

Out of 200 questions you've asked, you've accepted only 47% of them (as shown in your profile). Does that mean we have a 53% chance of wasting both your time and our time if we spend time helping you?

## Products

No products are associated with this question.

### Azzi Abdelmalek (view profile)

on 28 Dec 2012
Edited by Azzi Abdelmalek

### Azzi Abdelmalek (view profile)

on 28 Dec 2012

You can use Matlab function block or Interpreted Matlab Function block to implement your abc-dq transformation

Azzi Abdelmalek

### Azzi Abdelmalek (view profile)

on 5 Jan 2013

This is exact. But you can simply use one block instead all those blocks. a matlab function block with a function

```function [ud,uq]=fcn(ua,ub,uc,tetas)
uq=sqrt(2/3)*(cos(tetas)*ua+cos(tetas-2*pi/3)*ub+cos(tetas-4*pi/3)*uc);
ud=sqrt(2/3)*(-sin(tetas)*ua-sin(tetas-2*pi/3)*ub-sin(tetas-4*pi/3)*uc);
```

The gain 2/3 or sqrt(2/3) depends on the Park transformation you've chosen.

FIR

### FIR (view profile)

on 5 Jan 2013

Thanks Azzi i have modelled as per the diagram

http://www.sendspace.com/file/7ejn5s

http://www.sendspace.com/file/h9a77z

but why am not getting same output,please assist

Azzi Abdelmalek

### Azzi Abdelmalek (view profile)

on 5 Jan 2013

FIR, I think it was clear how to program a Park transformation block, by the blocks you found or by the block I suggested. Maybe you have some problem with theory, I think you should read this theory.

#### Join the 15-year community celebration.

Play games and win prizes!

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi