Code covered by the BSD License  

Highlights from
Delta Sigma Toolbox

image thumbnail

Delta Sigma Toolbox

by

 

14 Jan 2000 (Updated )

High-level design and simulation of delta-sigma modulators

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

padl(x, n, val)
function y = padl(x, n, val)
%y = padl(x, n, val)
% Pad a matrix x on the left to length n with value val(0)
% The empty matrix is assumed to be have 1 empty row
if nargin < 3
    val = 0;
end

y = [ val(ones(max(1,size(x,1)),n-size(x,2))) x ];

Contact us