+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Full Member level 3
    Points: 3,177, Level: 13
    leotim's Avatar
    Join Date
    Jul 2005
    Posts
    166
    Helped
    5 / 5
    Points
    3,177
    Level
    13

    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]

    •   Alt14th April 2006, 15:40

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 5,669, Level: 17
    hr_rezaee's Avatar
    Join Date
    Oct 2004
    Location
    Iran-Mashhad
    Posts
    751
    Helped
    109 / 109
    Points
    5,669
    Level
    17

    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/



    •   Alt15th April 2006, 09:51

      advertising

        
       

  3. #3
    Full Member level 3
    Points: 3,177, Level: 13
    leotim's Avatar
    Join Date
    Jul 2005
    Posts
    166
    Helped
    5 / 5
    Points
    3,177
    Level
    13

    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?



    •   Alt16th April 2006, 19:44

      advertising

        
       

  4. #4
    Advanced Member level 3
    Points: 5,669, Level: 17
    hr_rezaee's Avatar
    Join Date
    Oct 2004
    Location
    Iran-Mashhad
    Posts
    751
    Helped
    109 / 109
    Points
    5,669
    Level
    17

    matlab pretty

    Hi
    I think you can't use it.
    regards



+ Post New Thread
Please login