Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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,244 ✭✭✭✭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.

    Government resting upon the will and universal suffrage of the people has no anchorage except in the people's intelligence.

    — Grover Cleveland



  • 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,244 ✭✭✭✭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.)

    Government resting upon the will and universal suffrage of the people has no anchorage except in the people's intelligence.

    — Grover Cleveland



Advertisement
Advertisement