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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Matlab

  • 23-10-2012 2:29pm
    #1
    Registered Users, Registered Users 2 Posts: 27


    Hey,

    I am currently doing an assignement in matlab on appliance detect.
    I am givin 3 aplliance.mat files and have to create a function in matlab to be able detect each signal individually, detect if two signals are on, and detect if a unknown is connected.

    Any ideas, my main isuue is to add the two .mat files so i can pass them throughh my trial script???

    Thanks in advance,
    Paddy


Comments

  • Registered Users, Registered Users 2 Posts: 13,075 ✭✭✭✭bnt


    If you start with a clean slate (clear), then just load the .mat files (double-click on them in the list). Then you can examine the variables in them, in the Variables window (IIRC). Actually loading the files is a doddle, what you do next depends on what's in them.

    You are the type of what the age is searching for, and what it is afraid it has found. I am so glad that you have never done anything, never carved a statue, or painted a picture, or produced anything outside of yourself! Life has been your art. You have set yourself to music. Your days are your sonnets.

    ―Oscar Wilde predicting Social Media, in The Picture of Dorian Gray



  • Registered Users, Registered Users 2 Posts: 27 panoodles


    bnt,

    i have all that done, have got max/min amplitudes, dft, cross correlation of signals. just unsure on how to send in two signals at same time so can test my script/function?


  • Registered Users, Registered Users 2 Posts: 13,075 ✭✭✭✭bnt


    Not sure I follow you, then. Are you being expected to pass the loaded data as input parameters to the function? That's function programming of the sort:
    function [output1, output2, output3] = function(input1, input2, input3)
        ... 
       [outputs] = <insert formula>
    end
    
    And so on. You pass multiple arguments to the function as above, and can return multiple arguments if required.)

    You are the type of what the age is searching for, and what it is afraid it has found. I am so glad that you have never done anything, never carved a statue, or painted a picture, or produced anything outside of yourself! Life has been your art. You have set yourself to music. Your days are your sonnets.

    ―Oscar Wilde predicting Social Media, in The Picture of Dorian Gray



Advertisement