⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logical2float.m

📁 FPGA输出数据的时频域分析GUI界面
💻 M
字号:
function y = logical2float(x,varargin)
%LOGICAL2FLOAT Convert logical variable into float format.
%   y = logical2float(x) convert the logical variable x into float format
%   y. x can be a vector or matrix.

%   Author:Harrison Zheng
%   ShenZhen HYT Science&Technology CO.,LTD.
%   Date:2006.11.30
if ~islogical(x),
    error('Input variable must be logical.');
end
[m,n] = size(x);
y = zeros(m,n);
y(find(x)) = 1;

% ------  EOF  ------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -