From: Fabrizio Avantaggiato on
I have this symbolic intervals' matrix.

inter =

[ Dom::Interval(-28/5, Inf), Dom::Interval(-38/5, Inf)]
[ Dom::Interval(-Inf, 38/5), Dom::Interval(-Inf, 47/5)]
[ Dom::Interval(-37/5, Inf), Dom::Interval(-28/5, Inf)]
[ Dom::Interval(-Inf, 47/5), Dom::Interval(-Inf, 37/5)]

I need to find the intersection between the intervals in each coloumn. I would have something like that:

inter1=[-28/5,38/5] %for first coloumn (numeric)
inter2=[-28/5,37/5] %for second coloumn (numeric)

first of all i tried to do this using max and min operation but i get the following:
"??? Undefined function or method 'flat' for input arguments of type 'sym'."

but I noticed that if i write "inter(1,1)" I get
ans =
(-28/5, Inf)

and if I do min(ans) I get the same error BUT if i manually copy "(-28/5, Inf)" and the do "min(-28/5,Inf)" I get what I want:

ans =
-5.6000

How to do this with Matlab, without manually copying? is there a symbolic function that finds intersections between symbolic intervals?? (at least i would numeric array and not symbolic)