TUMcps / CORA

Toolbox for Reachability Analysis
GNU General Public License v3.0
108 stars 35 forks source link

@interval/gridPoints.m giving error #31

Closed adamdai closed 3 years ago

adamdai commented 3 years ago

When running the example in @interval/gridPoints.m, I get the follow error

>> I = interval([1 2; -1 1]);
>> coordinates = gridPoints(I,10);
Unable to perform assignment because the size of the left side is 2-by-1 and the size of the right side is 2-by-2.

Error in interval/gridPoints (line 50)
    coordinateMat(:,i) = startingPoint+(comb(i,:)'-1).*segLengthVec;
wetzlingerm commented 3 years ago

Thank you for finding this bug. The last commit has fixed the function.