代码搜索结果

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

e0804.m

clear; t=-2*pi:0.01:2*pi;y=sin(t);x=cos(t); plot3(t,x,y) title('This is the output figure of M-book ') xlabel('t');ylabel('y');zlabel('z');

reedsolwt.m

function wtdist = reedsolwt(n,k) % function reedsolwt(n,k) % % Compute the weight distribution for an (n,k) Reed-Solomon code % Assumes, for convenience, that q=2^m for some m. % Copyright 2004 by To

scale.m

function out = scale(in) m = min(min(in)); out = in-m; M = abs(max(max(out))); out = out/M; [r,c] = size(in); if length(find(in0.2*r*c out = out-1/2; end

c54.m

%写一个计算目标函数值M-file myfun.m function F = myfun(x) k = 1:10; F = 2 + 2*k-exp(k*x(1))-exp(k*x(2)); %调用函数lsqnonlin来解此等式 x0 = [0.3 0.4] %初始点 [x,resnorm] = lsqnonlin(@myfun,x0) % 使用优化函数

pen.m

%编写惩罚函数 pen.m function y=pen(x) s=0; for i=1:1:length(x) s=s+x(i) end y=min(0,min(x)).^2+(1-s).^2; %编写交易费用函数h.m function y=h(x,u,p) if (x>u) y=x*p else if (x>0) y=u*p

fftseq.m

function [M,m,df]=fftseq(m,ts,df) % [M,m,df]=fftseq(m,ts,df) % [M,m,df]=fftseq(m,ts) %FFTSEQ generates M, the FFT of the sequence m. % The sequence is zero padded to meet th

rx_est.m

function [Rx]=Rx_est(X,M) % [Rx]=Rx_est(X,M) % RX_EST estimates the autocorrelation of the sequence of random % variables given in X. Only Rx(0), Rx(1), ... , Rx(M) are computed.

fftseq.m

function [M,m,df]=fftseq(m,ts,df) % [M,m,df]=fftseq(m,ts,df) % [M,m,df]=fftseq(m,ts) %FFTSEQ Generates M, the FFT of the sequence m. % The sequence is zero padded to meet the required frequen

features.m

function n = features(m) % n = features(m) % returns a maximum feature id contained in the feature matrix m. % m : feature matrix loaded by fmatrix(). % $Id: features.m,v 1.1 2004/11/08 08:31:05 dmoch

goldseq.m

% Program 5-5 % goldseq.m % % The generation function of Gold sequence % % Programmed by M.Okita and H.Harada % function [gout] = goldseq(m1, m2, n) % *************************************