Commit 0ef265f1 authored by Andreas Zilian's avatar Andreas Zilian
Browse files

Improve treatment of constructor arguments.

parent 8cc6cb98
......@@ -8,7 +8,7 @@ classdef Node2D < mafe.Node
%% constructor
function obj = Node2D(ref_coords)
if nargin >= 1
if exist('ref_coords','var')
obj.ref = ref_coords;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment