#include "iostream.h" #include "math.h" void asub(double xin[], double xout[]) { int i,n = 20; xout[1] = xin[1] + 2…
Sun+Xin 源代码
汇集 Sun+Xin 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
% Channel % By Maxime Maury % 05-04-21 clear all; close all; disp('Start channel'); load('TXOutput'); load('tx_param'…
clear,clf,close all % fs = 48000; f1 = 5000; f2 = 11000; N = 8*1024; t = (0:(N/2-1))/fs; x1 = [sin(2*pi*f1*t), sin(2*pi*f1…
void rebin(rc,nd,r,xin,xi) float r[],rc,xi[],xin[]; int nd; { int i,k=0; float dr=0.0,xn=0.0,xo; for (i=1;i dr) { d…
% [xout,yout,iglob,dist] = FindNearestNode(xin,yin,X,Y) % % PURPOSE finds the mesh node that is closer to a requested location % …
!共轭梯度法度法解稀疏方程子程序 SUBROUTINE CGM(A,B,N2,ASUB,ATSUB,X,RSQ) PARAMETER (NMAX=1000,EPS=1.E-6) DOUBLE PRECISION A…
#include "iostream.h" #include "math.h" void asub(double xin[], double xout[]) { int i,n = 20; xout[1] = xin[1] + 2…
#include #include #define PI 3.14159265 #define NN 32 static float x[32]={ -1, 1, 1,-1,-1, 1,-1, -1,-1, 1,-1, 1, 1, 1, 1, …
#include "typedef.h" #include "math.h" struct compx EE(struct compx b1,struct compx b2) { struct compx b3; b3.real=b1.real*…
#include "iostream.h" #include "math.h" void asub(double xin[], double xout[]) { int i,n = 20; xout[1] = xin[1] + 2…