Giter Club home page Giter Club logo

matlab_scripts's Introduction

Required MATLAB Java version

The custom JAR file /MATLAB_Scripts/JAR_files/InfoTheoreticRanking_1.7.jar requires Java 1.7. Therefore, MATLAB should use the right JVM for accessing these classes. The MATLAB Java version can be different from the default system Java version. Based on your OS type, refer to the appropriate link for changing your MATLAB JVM:

http://www.mathworks.com/matlabcentral/answers/130359-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-for-windows-os https://www.mathworks.com/matlabcentral/answers/130360-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-for-linux https://www.mathworks.com/matlabcentral/answers/103056-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-for-mac-os

Check your current MATLAB Java version through the following command:

>> version -java

ans =

Java 1.7.0_75-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

Add the following folders to your MATLAB path:

/MATLAB_Scripts/Features
/MATLAB_Scripts/Features/AcclnBased
/MATLAB_Scripts/Features/FftBased
/MATLAB_Scripts/Features/PhaseBased
/MATLAB_Scripts/Features/VelocityBased
/MATLAB_Scripts/MatlabLibrary
/MATLAB_Scripts/Scripts
/MATLAB_Scripts/Scripts/OSC_PCT_Scripts (optional)
/MATLAB_Scripts/Scripts/MASS_2017 (optional)
/MATLAB_Scripts/Scripts/MASS_2017/OSC_PCT_Scripts (optional)
/MATLAB_Scripts/Scripts/MASS_2017/OSC_PCT_Scripts/OSC_Launch_Scripts (optional)
/MATLAB_Scripts/Scripts/MASS_2017/Result aggregation (optional)
/MATLAB_Scripts/Scripts/Paper_plots (optional)
/MATLAB_Scripts/Scripts/WWF_Related
/MATLAB_Scripts/Scripts/VisualizeInAfrica
/MATLAB_Scripts/Scripts/cell2csv
/MATLAB_Scripts/Scripts/matlab2weka
/MATLAB_Scripts/Scripts/mi
/MATLAB_Scripts/Scripts/test
/MATLAB_Scripts/Scripts/yaonazoude
/MATLAB_Scripts/Haar Features
/MATLAB_Scripts/eMote_scripts
/MATLAB_Scripts/Library/UserExtensions
/MATLAB_Scripts/Library/Products
/MATLAB_Scripts/Library/Products/BubleBee Design
/MATLAB_Scripts/Library/Products/BumbleBee Tests
/MATLAB_Scripts/Library/Products/BumbleBee Tests/Tests
/MATLAB_Scripts/Library/MatLab
/MATLAB_Scripts/Library/MatLab/NewFolder1 (optional)
/MATLAB_Scripts/Library/MatLab/NewFolder2 (optional)
/MATLAB_Scripts/Library/MatLab/NumAnal
/MATLAB_Scripts/Library/MatLab/SigPro
/MATLAB_Scripts/Library/MatLab/Tests
/MATLAB_Scripts/Library/MatLab/Visualization
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts/ClockAnalyzer
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts/LinkDetection
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts/LinkDetection/WriteUp
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts/Microphone
/MATLAB_Scripts/Library/Data Collection/MatLab Scripts/Radar

Add the following JAR_files to your MATLAB static Java classpath:

/MATLAB_Scripts/JAR_files/weka.jar
/MATLAB_Scripts/JAR_files/LibSVM/LibSVM.jar
/MATLAB_Scripts/JAR_files/libsvm.jar
/MATLAB_Scripts/JAR_files/InfoTheoreticRanking_1.7.jar

Follow these instructions for setting the static Java classpath: https://www.mathworks.com/help/matlab/matlab_external/static-path.html#bvjg_eg-3. DO NOT edit classpath.txt directly, as I encountered an issue with finding the appropriate packages on Ubuntu.

Create/add your own working directories in /MATLAB_Scripts/Scripts/SetEnvironment.m, e.g.:

str_pathbase_radar_dhrubo_Ubuntu = '/home/royd/Box Sync/All_programs_data_IPSN_2016/Simulation/toDhruboMichael';
str_pathbase_data_dhrubo_Ubuntu = '/home/royd/Box Sync/All_programs_data_IPSN_2016/Simulation/toDhruboMichael/Data_Repository';
str_pathbase_model_dhrubo_Ubuntu = '/home/royd/Box Sync/All_programs_data_IPSN_2016/Simulation/toDhruboMichael/IIITDemo/Models/royd';

%% assign path roots to global variables.
...
elseif strcmp(getenv('USER'),'royd'      )==1
    g_str_pathbase_radar = str_pathbase_radar_dhrubo_Ubuntu;
    g_str_pathbase_data  = str_pathbase_data_dhrubo_Ubuntu;
    g_str_pathbase_model = str_pathbase_model_dhrubo_Ubuntu;
...

Using dd and MATLAB to visualize raw radar data

  1. Exfiltration from SD card (88X LCD reading)

     sudo su 
     diskutil list       (fdisk -l on Ubuntu, cat /proc/partitions on Cygwin) 
     dd if=/dev/disk1 of=./Desktop/Great_Fish_Data_Collect/Nov_26_Lodge/March_4_noise.bbs bs=512 skip=1 count=1188
    
  2. Visualization on MATLAB

    i) Read generated .bbs file

     Comp = ReadRadar('March_4_noise.bbs'); [preferred]
    

    or,

     Comp = ReadRadarMedianTrack('March_4_noise.bbs',256,30);
    

    ii) Visualize on MATLAB

     BatchNoiseProd(Comp, 256, 'Dhrubo Test'); [preferred]
    

    or,

     ParameterAnalysis(Comp,256,'test',7,45,2,3,1);
    

    where 7, 45, 2, 3, 1 respectively stand for the threshold, IQ rejection, m, n, and window length.

  3. Zero-out SD card. CAREFUL!!! Writing zeros

     dd if=/dev/zero of=/dev/disk1 bs=1M count=20
    

Data extraction for Austere boards

  1. Exfiltration from SD card (use LCD reading)

     sudo dd if=/dev/sdb of=radar_out.det bs=32256 count=lcd_num
    

matlab_scripts's People

Contributors

dhruboroy29 avatar neelbhuva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.