Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Matlab

  • 23-10-2012 03: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,183 ✭✭✭✭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,183 ✭✭✭✭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