TUMcps / CORA

Toolbox for Reachability Analysis
GNU General Public License v3.0
100 stars 32 forks source link

function Removed in MATLAB Package #52

Closed XiaoLiSean closed 5 months ago

XiaoLiSean commented 5 months ago

Hi,

I used the previous version (2022) on MATLAB and lately switched to the latest version that was updated this year. And I noticed some functions, e.g., /contSet/@zonotope/sampleBox.m, are removed in the new packages. My previous development was based on some of the removed functions. I would much appreciate it if you could point me to the alternative functions or possibly consider adding the deleted functions back.

Thanks,

toladnertum commented 5 months ago

Hi,

This function was merged with zonotope/randPoint in v2024.1.2. Here is the updated code:

Z = zonotope([1;1], [1 1; 0 1]);
points = Z.randPoint(500,'uniform');

figure; hold on;
plot(Z,1:2);
plot(points(1,:), points(2,:), '.k')

Best, Tobias