matlab2c使用c++实现matlab函数系列教程-conj函数
来源:互联网 发布:小明看看台湾永久域名 编辑:程序博客网 时间:2024/05/21 10:03
全栈工程师开发手册 (作者:栾鹏)
matlab2c动态链接库下载
matlab库函数大全
matlab2c基础教程
matlab2c开发全解教程
matlab2c调用方法:
1、下载动态链接库
2、将Matlab2c.dll拷贝到exe同目录下
3、将Matlab2c.h、Matlab2c.lib放到项目头文件目录下
4、在cpp文件中引入下面的代码
#include "Matlab2c.h"#pragma comment(lib,"Matlab2c.lib") using namespace Matlab2c;
matlab中conj函数简介
1、conj函数:
取复矩阵共轭矩阵
2、用法说明
X = conj(Z),表示,取Z的共轭矩阵
conj的c++源码实现
复数矩阵取共轭
输入:复数矩阵a
输出:复数矩阵a的共轭
CMatrix Matlab2c::conj(CMatrix& a){ return a.conj();}
conj函数的使用测试
#include "Matlab2c.h"#pragma comment(lib,"Matlab2c.lib") using namespace Matlab2c;int main(){ double a[]={1,2,3,4,5,6}; double b[]={6,5,4,3,2,1}; CMatrix cc(2,3,a,b); CMatrix dd = cc.conj(); cout<<dd.toString()<<endl; system("pause"); return 0;}
阅读全文
0 0
- matlab2c使用c++实现matlab函数系列教程-conj函数
- matlab2c使用c++实现matlab函数系列教程-blkdiag函数
- matlab2c使用c++实现matlab函数系列教程-compan函数
- matlab2c使用c++实现matlab函数系列教程-eye函数
- matlab2c使用c++实现matlab函数系列教程-hankel函数
- matlab2c使用c++实现matlab函数系列教程-hilb函数
- matlab2c使用c++实现matlab函数系列教程-ones函数
- matlab2c使用c++实现matlab函数系列教程-zeros函数
- matlab2c使用c++实现matlab函数系列教程-pascal函数
- matlab2c使用c++实现matlab函数系列教程-toeplitz函数
- matlab2c使用c++实现matlab函数系列教程-wilkinson函数
- matlab2c使用c++实现matlab函数系列教程-diag函数
- matlab2c使用c++实现matlab函数系列教程-tril函数
- matlab2c使用c++实现matlab函数系列教程-triu函数
- matlab2c使用c++实现matlab函数系列教程-fliplr函数
- matlab2c使用c++实现matlab函数系列教程-flipud函数
- matlab2c使用c++实现matlab函数系列教程-reshape函数
- matlab2c使用c++实现matlab函数系列教程-rot90函数
- matlab2c使用c++实现matlab函数系列教程-angle函数
- 312 Burst Balloons
- GTX860M用ubuntu14.04wifi经常掉线的解决方法
- 309. Best Time to Buy and Sell Stock with Cooldown
- 416. Partition Equal Subset Sum 类似最小不可组成和
- matlab2c使用c++实现matlab函数系列教程-conj函数
- jsp静态包含和动态包含的区别
- 软考复习知识点自我总结
- 524. Longest Word in Dictionary through Deleting
- ABAP中对变式的处理
- C++常对象,常变量,长成员函数详解(转)
- 75. Sort Colors
- 567. Permutation in String
- HTML 5新增标签及CSS 3新增属性