From: Adam on
I think I solved it. If anyone needs this in the future here you go :). Thanks though.

rawDiscreteValues=' [c] [c] [c] [1 2 3 4] [c]' %Example

%Parse Discrete Variable Data
lowerIndex=findstr('[',rawDiscreteValues)
upperIndex=findstr(']',rawDiscreteValues)
size(lowerIndex,2)
discreteValues=cell(1,size(lowerIndex,2))
stringCharecters=str2mat(rawDiscreteValues)
for i=1:size(lowerIndex,2)
j=lowerIndex(i)
str=''
while(j<=upperIndex(i))
str=sprintf('%s %s',str, stringCharecters(j))
j=j+1;
end
discreteValues{i}=str2num(str)
end

Result: [] [] [] [1x4 double] []