代码搜索:sprintf
找到约 7,065 项符合「sprintf」的源代码
代码结果 7,065
www.eeworm.com/read/142273/12953745
c datetime.c
/*
* 日期和时间转换例程
*/
#include "../inc/screen.h"
struct tm *localtime();
void xdate(date0)
struct date *date0;
{
unsigned int ymdx;
ymdx = date0->ymd;
date0->day = ymdx & 0x1f;
www.eeworm.com/read/329374/12957744
m callcheck.m
function callcheck(htext,str1,z,vchk1,vchk2)
cla,set(htext,'string',[str1,sprintf('%1.4g\',z)]); %更新静态文本框内容
dt=0.1;t=0:dt:15;N=length(t);y=step(1,[1 2*z 1],t);plot(t,y);
if vchk1 %假如峰值
www.eeworm.com/read/329331/12960386
m display1.m
function varargout = display1(flag,varargin)
% DISPLAY1 displays progress information during optimization.
% FIGTR = DISPLAY1('init',itbnd,tol,showstat,nbnds,x,g,l,u)
% does the initialization
www.eeworm.com/read/329331/12960469
m optimfcnchk.m
function [allfcns,msg] = optimfcnchk(funstr,caller,lenVarIn,gradflag,hessflag,constrflag)
% OPTIMFCNCHK Pre- and post-process function expression for FUNCHK.
% [ALLFCNS,MSG] = OPTIMFCNCHK(FUNSTR,C
www.eeworm.com/read/142039/12968436
m display.m
function display(ddv)
% DISPLAY -
%
for k=1:length(ddv)
disp(sprintf('\n'))
disp('Discrete design variable')
disp('------------------------')
display(ddv(k).gen)
txt=strcat('Pos
www.eeworm.com/read/142039/12968469
m display.m
function display(gen)
% DISPLAY -
%
txt=sprintf('Name: %s\nCoding bits: %g\nValue: %g',gen.name,gen.bits,gen.value);
disp(txt)
www.eeworm.com/read/142034/12969261
m tfarma20.m
function [AmlEst, BmlEst, EstInfo]= tfarma20(x, MMAX, LMAX, crit, longord)
% function [AmlEst, BmlEst, EstInfo]= tfarma20(x, MMAX, LMAX, crit, longord)
% This file is part of the TFPM toolbox v1.0 (
www.eeworm.com/read/141844/12981158
cpp globalwatch.cpp
// GlobalWatch.cpp: implementation of the GlobalWatch class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//#include "8051class.h"
#include "Glo
www.eeworm.com/read/329033/12988499
m systemz_2.m
%分析系统函数H(Z)=(2*z^(-1)-z^(-2)+z^(-3))/(1+z^(-1)+z^(-2)/2)零极图,稳定性,及系统单位抽样响应
syms z n
B=[0 2 -1 1];
A=[1 1 1/2 0];
sys=filt(B,A)
%%%求零极点,在命令窗口显示结果
sprintf('系统函数的零极点为:')
[z,p,k]=tf2zp(B,A);
z
p
www.eeworm.com/read/329033/12988505
m system.m
%分析系统函数H(Z)=(z^2+z)/(z^3+2*z^2-4*z-1)零极图,稳定性,及系统单位抽样响应
syms z n
B=[0 1 1 0];
A=[1 2 -4 1];
sys=filt(B,A);
[r,p,k]=residue(B,A)
%%%求零极点,在命令窗口显示结果
sprintf('系统函数的零极点为:')
[z,p,k]=tf2zp(B,A);
z
p