简体   繁体   English

使用在C ++中使用fdatool创建的过滤器

[英]Use filters which were created with fdatool in c++

I created some filters with fdatool in Matlab. 我在Matlab中使用fdatool创建了一些过滤器。 Now I want to use this filters in a windows aplication using c++. 现在,我想在使用c ++的Windows应用程序中使用此过滤器。

I search some libraries to filter in c++, but these libraries has functions which implement filters like chebyshev,etc. 我搜索了一些要在c ++中进行过滤的库,但是这些库具有实现chebyshev等过滤器的功能。 But i want use my filters. 但我想使用我的过滤器。

How can i do? 我能怎么做? i know export coefficients in some formats, but how can use this in c++. 我知道某些格式的导出系数,但是如何在c ++中使用它。

Thansk 坦斯克

There are two ways that enable you to call Matlab functions (filters in you case) inside C++: 有两种方法可以使您在C ++中调用Matlab函数(在您情况下为过滤器):

  1. Distribute MATLAB into independent shared library: check out this blog on how to do this (with detail steps and example). 将MATLAB分发到独立的共享库中:查阅此博客 ,了解如何操作(详细步骤和示例)。

  2. Call MATLAB Engine directly: Refer to another blog for more info. 直接调用MATLAB Engine:有关更多信息,请参见另一个博客

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM