question on MATLAB "pretty" function

Status
Not open for further replies.

leotim

Full Member level 3
Joined
Jul 13, 2005
Messages
166
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,296
Activity points
2,596
matlab pretty

hi all
i have a MATLAB code:

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

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]
 

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

1
-------------
/ 1 \
s d |1 + ---|
\ s d/
 

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?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…