octfunctionsolution

Environment in package mumie.problem.

Synopsis

\begin{octfunctionsolution}{name}
  ...
\end{octfunctionsolution}

Description

Creates a sample solution for a function that has to be defined by the user as part of the answer.
name is the name of the function.

Example

\begin{octfunctionsolution}{matrix_min}
  function min = matrix_min (A)
    min = "undefined";
    for i = 1:rows(A)
      for j = 1:columns(A)
        a = A(i,j);
        if ( or(min == "undefined", a < min) )
          min = a;
        endif
      endfor 
    endfor
  endfunction
\end{octfunctionsolution}

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)