+ Post New Thread

Results 1 to 4 of 4

- 14th April 2006, 16:40 #1
## matlab pretty

hi all

i have a MATLAB code:

y = (1/(s*C))/(1+1/(s*C));

pretty(y)

it returns:

1

--------------------------------------

/ 1 \

s codegen:-C |1 + ----------------|

\ s codegen:-C /

instead of:

1

-------------------

/ 1 \

s C |1 + ------|

\ s C /

Who knows why and how solve this problem?[/img]

- 14th April 2006, 16:40

- 15th April 2006, 10:51 #2

- Join Date
- Oct 2004
- Location
- Iran-Mashhad
- Posts
- 751
- Helped
- 113 / 113
- Points
- 5,891
- Level
- 18

## pretty matlab

Hi

see this title "mcc :: MATLAB Compiler Quick Reference (MATLAB Compiler)"

just change "C" with another like "d"

y = (1/(s*d))/(1+1/(s*d));

>> pretty(y)

1

-------------

/ 1 \

s d |1 + ---|

\ s d/

- 15th April 2006, 10:51

- 16th April 2006, 20:44 #3
## pretty function in matlab

I know that if i replace C by another letter, this problem does not occur, but how i can use "C" letter in pretty function?

- 16th April 2006, 20:44

- 17th April 2006, 07:55 #4

- Join Date
- Oct 2004
- Location
- Iran-Mashhad
- Posts
- 751
- Helped
- 113 / 113
- Points
- 5,891
- Level
- 18

## matlab pretty

Hi

I think you can't use it.

regards

+ Post New Thread

Please login