Engineering

Engineering: Matlab Cheat sheet

Table of Contents

  1. General
    1. Student Account is cheaper
    2. Clear commands in Command Window = clc
    3. Clear variables in Workspace
      1. Clear all variables = clear all
      2. Clear variable a only = clear a
  2. Plot
  3. GUI
  4. File IO
  5. Waveform Generation
    1. Generate zeros
      • zeros([M , N ]) – M by N matrix of zeros
        • zeros ([1, 400])
    2. Generate ones
      • ones([1, 240 ])
    3. Combine waveforms (concatenate arrays)
      • cat( DIM, A, B)
        • Example: cat (2, y1, y2)
    4. Make a waveform into complex format
      • a = hilbert(y)
      • I_channel = real(a)
      • Q_channel = imag(a)