Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

  1. Copy the directions

  2. Paste into Notepad and save as text file

    • Include extension, so “D.txt”

  3. In MATLAB, “Import Data” and select file

    • Check “Space” under Column delimiters

    • Change “Output Type” to “Numeric Matrix”

    • Import (by default all columns should be selected)

    • Variable will take name of file (e.g., “D”)

  4. In MATLAB Command Window, reword the imported variable into rows of x/y/z

% Transpose
D = D';
% Get rid of NaN's at end
D(isnan(D)) = [];
% Reshape into x/y/z (columns)
D = reshape(D,3,[]);
% Flip so xyz are in rows
D = D';

Copy directions

Paste into Notepad and save as text file *e.g., “D.txt”)

Import

  • No labels