代码搜索结果

找到约 582,192 项符合 Cortex-M 的代码

crccheck.m

msg=[1 1 1 0 0 0 1 1 ]; %信息序列 poly=[1 1 0 0 1 1]; %生成多项式 [M N]=size(poly); %生成多项式大小 mseg=[msg zeros(1,N-1)] %存放加了CRC的序列 [q r]=deconv(mseg,poly); %q为商,r为余数

encode_bit.m

function [output, state] = encode_bit(g, input, state) [n,k] = size(g); m = k-1; for i=1:n output(i) = g(i,1)*input; for j = 2:k output(i) = xor(output(i),g(i,j)*state(j-1)); end

fftplatform.m

function varargout = FFTPlatForm(varargin) % FFTPLATFORM M-file for FFTPlatForm.fig % FFTPLATFORM, by itself, creates a new FFTPLATFORM or raises the existing % singleton*. % % H =

require.m

function varargout = require(varargin) % REQUIRE M-file for require.fig % REQUIRE, by itself, creates a new REQUIRE or raises the existing % singleton*. % % H = REQUIRE returns the

paramsetting.m

function varargout = ParamSetting(varargin) % PARAMSETTING M-file for ParamSetting.fig % PARAMSETTING, by itself, creates a new PARAMSETTING or raises the existing % singleton*. % %

nco_tb.m

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Altera NCO Compiler version 6.1 % file : NCO_tb.m % % Description : The following Matlab testbench excerc

test.m

% % This is a test m-file to try out this package on % level set methods. It creates a signed distance function % whose zero level set (the curve) is a square. In the default setup, % this square

fit1500.m

/* For Atmel-WinCUPL 4.7b or later ************** FIT1500.M - Fitting Options Atmel ATF1500 ************** In most designs, you do not need to use any of the Fitting Options. If your design is

ch7_2_3.m

%%%%%%5相位编组法实现纹理直线边缘的检测程序代码(代码以子函数形式给出) function gradephase(x) [m,n]=size(x); bw=edge(x,'sobel'); gy=x(1:m-1,1:n-1)-x(2:m,1:n-1); gx= x(1:m-1,1:n-1)-x(1:m-1,2:n); g=gy./(gx+eps); ph-atan(g)+(si

ch7_1_1.m

%%% 下面是最大方差法计算灰度分割门限的代码:(代码以子函数形式给出) function th = thresh_md(a); % 该函数实现最大方差法计算分割门限 % 输入参数为灰度图像,输出为灰度分割门限 count = imhist(a); % 返回图像矩阵a各个灰度等级像素个数 [m,n] = size(a); N = m*n - sum(sum(find(a==0