Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121358311
cvx_subsref_check.m
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 10, 06:47
Size
922 B
Mime Type
text/x-Algol68
Expires
Sat, Jul 12, 06:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27288806
Attached To
R1252 EMPoWER
cvx_subsref_check.m
View Options
function
s
=
cvx_subsref_check
(
nin
,
nin_norm
,
S
)
if
nin
<
nin_norm
,
s
=
'
Not
enough
input
arguments
'
;
elseif
nin
==
nin_norm
,
if
~
isa
(
S
,
'
struct
'
),
s
=
'
Subscript
argument
to
SUBSREF
and
SUBSASGN
must
be
a
structure
.
'
;
else
Sf
=
fieldnames
(
S
);
if
length
(
Sf
)
~=
2
,
s
=
'
Subscript
argument
to
SUBSREF
and
SUBSASGN
must
have
two
fields
.
'
;
elseif
~
isempty
(
setdiff
(
{
'
type
'
,
'
subs
'
},
Sf
)
),
s
=
'
Subscript
argument
to
SUBSREF
and
SUBSASGN
must
have
two
fields
whose
names
are
"type"
and
"subs"
.
'
;
elseif
isempty
(
S
),
s
=
'
Subscript
argument
to
SUBSREF
and
SUBSASGN
must
not
be
empty
.
'
;
else
s
=
''
;
end
end
else
s
=
''
;
end
%
Copyright
2005
-
2014
CVX
Research
,
Inc
.
%
See
the
file
LICENSE
.
txt
for
full
copyright
information
.
%
The
command
'
cvx_where
'
will
show
where
this
file
is
located
.
Event Timeline
Log In to Comment