代码搜索:factor
找到约 6,651 项符合「factor」的源代码
代码结果 6,651
www.eeworm.com/read/464825/7060469
m ex_07_04_1.m
% ex_07_04_1.m : 习题 7.4
clear all;
close all;
N=33;
m=(N-1)/4;
n=1:N;
h(n)=0;
for k=0:(m-1)
n=4*k+2;
h(n+1)=8/(pi*(n-16))/(pi*(n-16));
end
h((N+1)/2)=0.5;
for k=0:(N-1)/2
www.eeworm.com/read/464825/7060478
m ex_07_03_1.m
% ex_07_03_1.m : 习题 7.3
clear all;
fl=pi/4; N=29;
factor=(N+1)/2;
m=factor*fl/pi;
m=floor(m);
j=sqrt(-1);
for k=0:(N-1)
if(k=(N-m))
a=-j*(N-1)*k*pi/N;
H(k+1)
www.eeworm.com/read/464709/7067661
cpp 2363.cpp
#include
#include
using namespace std;
int getMinPaper(int iNum)
{
int k;
int iMinResult = 4*iNum + 2;
int factor1, factor2;
int temp = 0;
int sum = 0;
for(k = 1
www.eeworm.com/read/236873/7119081
m lin2pcmu.m
function p=lin2pcmu(x,s)
%LIN2PCMU Convert linear to Mu-law PCM P=(X,S)
% pcmu = lin2pcmu(lin) where lin contains a vector
% or matrix of signal values within a range determined by
% the scale fac
www.eeworm.com/read/274556/7126994
m e0519.m
factor(1025)
%由执行结果可以看出1025=5×5×41,恰巧是素数之积。因此求全部两位数的素数的程序如下:
sushu=[];
for ii=10:99
x=factor(ii);
if x==ii
sushu=[sushu ii];
end
end
sushu
www.eeworm.com/read/461264/7230793
pro f_format.pro
function f_format, minval, maxval, factor, length
;+
; NAME:
; F_FORMAT
; PURPOSE:
; Choose a nice floating format for displaying an array of REAL data.
; EXPLANATION:
; Called by TVLIST, IMLIST.
;
;
www.eeworm.com/read/458504/7295328
m convcon.m
% convcon.m
% Scope: This MATLAB macro sets the most used conversion constants as
% global variables.
% Usage: convcon
% Description of global parameters:
www.eeworm.com/read/458010/7314215
m lin2pcmu.m
function p=lin2pcmu(x,s)
%LIN2PCMU Convert linear to Mu-law PCM P=(X,S)
% pcmu = lin2pcmu(lin) where lin contains a vector
% or matrix of signal values within a range determined by
% the scale fac