⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testsincplot.c

📁 精通Matlab与C_C++混合程序设计.rar 是精通Matlab与C_C++混合程序设计 这本书的配套源码
💻 C
字号:
/* $Revision: 1.3 $ */
// Automatically generated by MATLAB Project Wizard version 1.0

#include "matlab.h"
#include "libsincplot.h"
#include "matrix.h"

int main()
{
	mxArray * pArrayIn;
	mxArray * pArrayOut;
	int i=0;
	libsincplotInitialize();
	pArrayIn = mxCreateDoubleMatrix(1,1,mxREAL);
	*(mxGetPr(pArrayIn))=10;//输入参数
	mlxSincplot(1,&pArrayOut,1,&pArrayIn);	
	for(i=0;i<mxGetNumberOfElements(pArrayOut);i++)
	{
		printf("%6.2f\n",*(mxGetPr(pArrayOut)+i));
	}
	mxDestroyArray(pArrayIn);
	mxDestroyArray(pArrayOut);
	libsincplotTerminate();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -