forked from juliamatlab/julia-matlab-shuttle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuliatype.m
32 lines (30 loc) · 830 Bytes
/
juliatype.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
classdef juliatype
% juliatype: explicitly specify the Julia type corresponding to matlab variable(s)
%
% You only need the constructor:
% jlt = juliatype(juliatypename, args...)
% where
% juliatypename is the name of a Julia type,
% args is a list of variables
% and
% jlt "wraps" the args in a way that specifies to juliaserialize how to
% encode these inputs.
%
% Example:
% A = juliacall(socket, 'randn', juliatype('Tuple', 3, 5))
% would make a 3-by-5 random matrix, equivalent to the Julia command
% A = randn((3,5))
%
% See also: juliacall, juliaserialize.
% Copyright 2012 by Timothy E. Holy
properties (Access = public)
type
args
end
methods
function obj = juliatype(t, varargin)
obj.type = t;
obj.args = varargin;
end
end
end