From d17b33131c14864bd1eae275f49a3f148e21cf29 Mon Sep 17 00:00:00 2001 From: Leo Chan Date: Thu, 22 Oct 2020 01:53:21 -0400 Subject: Squashed commit of the sb-vbs branch. Includes the SD-VBS benchmarks modified to: - Use libextra to loop as realtime jobs - Preallocate memory before starting their main computation - Accept input via stdin instead of via argc Does not include the SD-VBS matlab code. Fixes libextra execution in LITMUS^RT. --- SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m (limited to 'SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m') diff --git a/SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m b/SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m new file mode 100755 index 0000000..5828696 --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/fact/show_S.m @@ -0,0 +1,17 @@ +function show_S(S,fig) + +if (nargin == 1), + figure(1); +else + figure(fig); +end + +num_points = size(S,2); + +subplot(1,2,1); plot(S(1,:),S(3,:),'cx'); axis('equal');axis('square');hold on +subplot(1,2,2); plot(S(2,:),S(3,:),'cx'); axis('equal');axis('square');hold on + +for j=1:num_points, + subplot(1,2,1);text(S(1,j),S(3,j),int2str(j));hold off + subplot(1,2,2);text(S(2,j),S(3,j),int2str(j));hold off +end -- cgit v1.2.2