matlab - rowfun 错误“输入参数过多”
问题描述
为什么这个匿名函数不能使用rowfun
?
>> T = table([43;52;67;28],[64;24;69;45])
>> rowfun(@(x) sum(x), T)
Error using tabular/rowfun>dfltErrHandler (line 497)
Applying the function '@(x)sum(x)' to the 1st row of A generated the following
error:
Too many input arguments.
解决方案
推荐阅读
- python - 如何从这个深度嵌套的“for”循环中创建列表理解?
- javascript - 如何为 woocommerce 结帐生成安全码/密钥?
- url - vsto 自动网页更新
- jasper-reports - 如何将子报表连接到主报表
- visual-studio-code - 如何在 vscode 的 JavaScript 标准样式扩展中支持 ES7 作为静态语法?
- r - 素食主义者抗议使用的相关类型
- python-3.x - 如何将以下数据转换为熊猫数据框
- python - SO pyDAL + MongoDB:如何在 JSON 字段中搜索?
- reporting-services - 如何将超过 24 小时的时间值分配给水平堆积条形图
- reactjs - 试图让 axios 响应从 localhost:8080 到 Rails 服务器 localhost:3000 的请求