代码搜索:sprintf
找到约 7,065 项符合「sprintf」的源代码
代码结果 7,065
www.eeworm.com/read/458682/7291466
sh ex47.sh
#!/bin/bash
# printf demo
PI=3.14159265358979
DecimalConstant=31373
Message1="Greetings,"
Message2="Earthling."
echo
printf "Pi to 2 decimal places = %1.2f" $PI
echo
printf "Pi to 9 decimal places
www.eeworm.com/read/458010/7314255
m sprintsi.m
function s=sprintsi(x,d,w)
%SPRINTSI Print X with SI multiplier S=(X,D,W)
% D is number of decimal places (+ve) or significant digits (-ve) [default=-3]
% |W| is total width including multiplier
%
www.eeworm.com/read/457711/7318915
m ag45.m
%《线性代数实验践及MATLAB入门》第四章第五节演示程序ag45
% 字符串函数库
% 电子工业出版社出版 陈怀琛 龚杰民合著 2005年10月
clear, echo on
s='abyzABYZ0189',pause
size(s),pause
abs(s),pause
setstr(abs(s)),pause
dec2hex(abs(s)),pause
s1=['
www.eeworm.com/read/457234/7330620
cc classread.cc
/*
* HT Editor
* classread.cc
*
* Copyright (C) 2001 Stanley Gambarin
* Copyright (C) 2002 Sebastian Biallas (sb@biallas.net)
*
* This program is free software; you can r
www.eeworm.com/read/455967/7360656
m eigs2.m
function varargout = eigs2(varargin)
%
% Slightly modified version from matlab eigs, Timothee Cour, 2004
%
% EIGS Find a few eigenvalues and eigenvectors of a matrix using ARPACK.
% D = EIG
www.eeworm.com/read/453188/7424905
m testdtw.m
disp('正在计算参考模板的参数...')
for i=1:10
fname = sprintf('..\\ch6\\%da.wav',i-1);
x = wavread(fname);
[x1 x2] = vad(x);
m = mfcc(x);
m = m(x1-2:x2-2,:);
ref(i).mfcc = m;
end
disp('正在计算测试模板的参
www.eeworm.com/read/453188/7424911
m recog.m
for i=1:10
fname = sprintf('..\\..\\ch6\\%db.wav',i-1);
x = wavread(fname);
[x1 x2] = vad(x);
m = mfcc(x);
m = m(x1-2:x2-2,:);
for j=1:10
pout(j) = viterbi(hmm{j}, m);
end
[d,n] = m
www.eeworm.com/read/451385/7466243
m flame.m
function flame
% FLAME A stiff ordinary differential equation.
% A ball of fire grows until its radius is just large enough that all of
% the oxygen available through the surface is consumed by co
www.eeworm.com/read/451385/7466290
m goldfract.m
function goldfract(n)
%GOLDFRACT Golden ratio continued fraction.
% GOLDFRACT(n) displays n terms.
p = '1';
for k = 1:n
p = ['1+1/(' p ')'];
end
p
p = 1;
q = 1;
for k = 1:n
s =
www.eeworm.com/read/450608/7480085
m plotgtm.m
%PLOTGTM Plot a trained GTM mapping in 1D, 2D or 3D
%
% H = PLOTGTM (W)
%
% INPUT
% W Trained GTM mapping
%
% OUTPUT
% H Graphics handles
%
% DESCRIPTION
% Creates a plot of the