Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- classdef somehandleclass < handle %#codegen
- properties
- something
- end
- methods
- function obj = somehandleclass(initval)
- obj.something = initval;
- end
- end
- end
- function runsomehandleclass %#codegen
- obj = somehandleclass(0);
- for i=1:6
- obj = somehandleclass(i);
- end
- disp(obj.something);
- end
- cfg = coder.config('mex');
- cfg.GenerateReport = true;
- codegen -config cfg runsomehandleclass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement