-
Notifications
You must be signed in to change notification settings - Fork 0
/
clonal_struct.m
33 lines (31 loc) · 1.2 KB
/
clonal_struct.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
33
function [ struct_out ] = clonal_struct( struct_desc )
%UNTITLED1 Summary of this function goes here
% Detailed explanation goes here
if ischar(struct_desc),
switch struct_desc
case 'Antigen',
struct_out = struct( 'type','Antigen', ...
'epitope',[], ... %epitope
'class',-1);
case 'Antibody',
struct_out = struct( 'type','Anitibody', ...
'receptor',[], ... %receptor
'class',0, ...
'affinity',-1, ...
'isMemoryCell',false);
case 'class_info',
struct_out = struct( 'type','class_info', ...
'number',-1, ...
'size',-1, ...
'Antibody_NRange', [0 0],...
'locations',[]);
otherwise
error('Unrecognized argument for struct_desc');
struct_out = [];
return;
end
else
error('Incorrect type for struct_desc');
struct_out = [];
return;
end