搜索资源列表
ftoa.c
- This a fast floating point to string conversion function. Avoids the use of unsafe sprintf function. Works with float and double types. Correctly manages +inf, -inf, nnan (not a number).-This is a fast floating point to string conversion function. Av
formats
- 类似于fortran语言的格式控制 用法: s=formats(n1,s1,n2,s2,...) s1,s2为字符型,n1,n2为整型,如果值等于1,可以忽略不写 例如用于控制输出: x=rand(1,5) y=[ hello where which ] z=1:3 sprintf([ x= ,formats(5, 5.2f , \n ), y= ,formats( s , \n ), z= ,formats(3, d )],x,y ,z) formats
manish
- [mimi,i]=min(abs(imag(disp1)-imag(disp2))) legend( LHS of dispersion relation , RHS of dispersion equation ) xlabel( u,cl ) figure(1) clc uppercuts = input( Enter number of intersection points desired: ) [g,h] = ginput(uppercut
youhua1
- 遗传算法的电机优化程序,个人专门编写的,对于初学者来说,可以借鉴-function youhua1() 遗传算法 n-- 种群规模 ger-- 迭代次数 pc--- 交叉概率 pm-- 变异概率 v-- 初始种群(规模为n) f-- 目标函数值 fit-- 适应度向量 vx-- 最优适应度值向量 vmfit-- 平均适应度值向量 clear all close all clc 清屏 tic
Trigonometric-Polynomial-Approximation
- Complete Trigonometric Polynomial Approximation. FFT s Coefficients Evaluation. Fourier Series Expansion calculation. Fixed & manual increment uation interval.Complete & custom graphical output. Only setup the input function, uation interval and code