Code covered by the BSD License  

Highlights from
Ellipsoidal Toolbox (ET)

image thumbnail
from Ellipsoidal Toolbox (ET) by Alex Kurzhanskiy
Implementation of the ellipsoidal calculus and ellipsoidal methods for reachability analysis.

ell_value_extract(X, t, dims)
function res = ell_value_extract(X, t, dims)
%
% ELL_VALUE_EXTRACT - extracts matrix value from ppform or vector array.
%

  if isstruct(X)
    res = reshape(ppval(X, t), dims(1), dims(2));
  else
    [m, n] = size(X);
    if (dims(1) == m) & (dims(2) == n)
      res = X;
    else
      res = reshape(X(:, t), dims(1), dims(2));
    end
  end

  return;

Contact us at files@mathworks.com