Skip to content

Commit

Permalink
Merge pull request #21 from SaikiranGudla/master
Browse files Browse the repository at this point in the history
Tx: Update outputData type conversion from dataIn
  • Loading branch information
tfcollins authored Jan 15, 2024
2 parents 847122c + e9be04e commit 71865a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tx.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function setupImpl(obj,data)
%
outputData = complex(zeros(length(dataIn)*c,1));
for k = 1:2:c
outputData(k+0:c:end,1) = real(int16(dataIn(:,index).'));
outputData(k+1:c:end,1) = imag(int16(dataIn(:,index).'));
outputData(k+0:c:end,1) = real(cast(dataIn(:,index).', obj.dataTypeStr));
outputData(k+1:c:end,1) = imag(cast(dataIn(:,index).', obj.dataTypeStr));
index = index + 1;
end

Expand All @@ -58,7 +58,7 @@ function setupImpl(obj,data)
%
outputData = zeros(length(dataIn)*c,1);
for k = 1:c
outputData(k:c:end,1) = int16(dataIn(:,k).');
outputData(k:c:end,1) = cast(dataIn(:,k).', obj.dataTypeStr);
end
end
%%
Expand Down

0 comments on commit 71865a4

Please sign in to comment.