matlab - 如何在MATLAB中获得简化形式的求和?
问题描述
我有这个代码来计算信号的能量。
syms n N
x3(n) = cos(pi/4*n);
x3(n) = abs(x3(n)) * abs(x3(n));
energy = symsum(x3(n),-inf,inf);
vpa(energy)
我得到这个输出。
symsum(abs(exp(-(pi*n*1i)/4)/2 + exp((pi*n*1i)/4)/2)^2, n, 0, Inf) + symsum(abs(exp(-(pi*n*1i)/4)/2 + exp((pi*n*1i)/4)/2)^2, n, 1, Inf)
如何获得实数形式的简化输出?
我还尝试通过使用 sum 而不是 symsum 进行求和来解决它,但无法获得所需的答案。
解决方案
推荐阅读
- shopify - Shopify 购买按钮
- android - 尝试导入库时在 DexPathList 上找不到类
- reactjs - 如何正确管理etag?
- windows - WinTrust 验证在某些特定的 exe 上花费大量时间
- google-cloud-platform - Java - 在 Google Workspace Marketplace API 中出现“未授权访问应用程序 ID”错误
- javascript - 如何反转第一个标签的颜色顺序?
- java - 为什么我实际上需要 Spring Boot 中的接口?
- javascript - chartjs 上的标签,当屏幕尺寸较小时无法点击
- lua - 没有通过 ipairs 正确地迭代联系人
- json - 无法从我的 ReactJs 站点中的服务器获取数据