Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Matlab error

Options
  • 31-10-2007 6:24pm
    #1
    Registered Users Posts: 3,615 ✭✭✭


    Hi lads

    I've wrote an M-file for a simulink block diagram I had drawn previously in which the variable "Zrear" was set as a simout to workspace block.

    In the Mfile I have a simple plot of Zrear versus time

    I keep getting the ??? Undefined function or variable "Zrear". error
    when I run the M-file even though the Zrear Variable is clearly defined in the block diagram.

    Has anyone ever had a similar problem or have any ideas? thanks



    p.s. I can post some of the M-file and a screenshot of the block diagram if needs be.


Comments

  • Closed Accounts Posts: 66 ✭✭massplanck


    Are you calling the Plot from a GUI you made with Matlabs GUI Editor (guide)? Or is everything in the same m-file?

    I used to have to re-declare the variables I was plotting or using in my GUI code when calling my functions.


  • Closed Accounts Posts: 66 ✭✭massplanck


    posting the code & a screenshot would help too. ;)


Advertisement