From 4973be6a0d1148af485be78e2406628a69ae35a3 Mon Sep 17 00:00:00 2001 From: Piotr Jarosik Date: Wed, 28 Oct 2020 16:51:46 +0100 Subject: [PATCH] Fixed missing variable. --- api/matlab/arrus/Us4R.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/matlab/arrus/Us4R.m b/api/matlab/arrus/Us4R.m index 3ba0ae838..a7d110771 100644 --- a/api/matlab/arrus/Us4R.m +++ b/api/matlab/arrus/Us4R.m @@ -468,7 +468,7 @@ function setSeqParams(obj,varargin) %% Active channels group mask if obj.sys.adapType == -1 [~,I] = sort(obj.sys.rxChannelMap.'); - obj.seq.actChanGroupMask = reshape(any(reshape(obj.sys.actChan(I + (0:(nArius-1))*128), 8, 16, [])), 16, []); + obj.seq.actChanGroupMask = reshape(any(reshape(obj.sys.actChan(I + (0:(obj.sys.nArius-1))*128), 8, 16, [])), 16, []); % for future: some other adapters (esaote, atl/philips) % can have a similar problem as esaote2 but on a much smaller scale else