Import your own class in Matlab
<p>I created my own class file in Matlab.</p>

<pre><code>classdef Impact
%IMPACT Summary of this class goes here
%   Detailed explanation goes here

    properties
        V       
    end

    methods(Static)        
        function Imp=Func(A)
            B=V*A^2;
        end
    end

end
</code></pre>

<p>It's possible to call the function <code>Func</code> like <code>out=Func(input)</code> instead of <code>out=Impact.Func(input)</code>. I hear about <code>import</code> command, but I don't know how to use it when the class is not inside a package. </p>

<p>Thanks very much in advance. Regards.</p>