完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,allIn VEE,“公式”设备,如果我们将ArrayX作为一维数组,ArrayX [0:2]将是ArrayX的前3个索引(索引0,1和2)元素。如果我想提取
元素不是默认的逐个序列,而是每两个元素,比如索引0,2,4,6。除了使用“重复”设备,有没有简单的方法? (例如,matlab将是0:2:6,这在这里不起作用。)非常感谢你! 以上来自于谷歌翻译 以下为原文 Hi, all In VEE, "formula" device, if we have ArrayX as one-dimensional array, ArrayX[0:2] would be the first 3 indexed (index 0, 1 and 2) elements of ArrayX. If I want to extract the elements not in the default one by one sequence, but every two element, say index 0, 2, 4, 6. Besides using the "Repeat" device, are there any simple ways? (e.g., Matlab would be 0:2:6, which doesn't work here). Thank you very much! |
|
相关推荐
3个回答
|
|
通过Matlab脚本,可以使用ArrayX(1,2,7)获取所需的元素。但是我发现它需要比仅VEE程序相对更长的处理时间,可能是因为调用了Matlab脚本?还有其他选择吗?
除了Matlab脚本? 非常感谢! 以上来自于谷歌翻译 以下为原文 by Matlab script, it is possible to get the wanted elements with ArrayX(1,2,7). But I found it takes relatively longer process time than VEE only program, maybe due to calling of the Matlab script? Are there any other alternatives besides the Matlab script? Thanks a lot! |
|
|
|
我猜matlab脚本是完成这项工作的最佳方式。对于第一次执行matlab脚本,需要一些时间。
之后,它将非常快地执行matlab脚本。顺便说一下,我无法通过跟随vee文件实现你想要做的事情。 也许你可以指出我。 以上来自于谷歌翻译 以下为原文 I guess matlab script is best way to do the job. For first time to execute matlab script, it will take some time. After that, it will execute matlab script quite fast. By the way, i cant achieve what you're trying to do via following vee file. Perhaps you can point me out. 附件
|
|
|
|
亲爱的PingWei,非常感谢你的帮助。我也使用Matlab脚本,最后在今天早上实现了它。
我花了很多时间来解决错误“433给出的数组维数太多”,最后我发现原因是对于Matlab脚本,它不支持文本数组,2D或更多要从VEE类型转换为Matlab类型。 所以我只是文件中的I / O以实际格式读出源数据而不是文本和问题解决。谢谢了。 以上来自于谷歌翻译 以下为原文 Dear PingWei, thanks a lot for your help. I also use the Matlab script and finally realized it this morning. I spent a lot of time fighting with the error "433 Too many array dimensions given ", finally I found out the reason is that for Matlab script, it does not support Text Array, 2D or more to be transferred from VEE type to Matlab Type. So I just I/O from file read out the source data in real format instead of text and problem solved. Thanks again. |
|
|
|
只有小组成员才能发言,加入小组>>
1245 浏览 0 评论
2355 浏览 1 评论
2166 浏览 1 评论
2033 浏览 5 评论
2918 浏览 3 评论
988浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
718浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
818浏览 0评论
1245浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 04:15 , Processed in 1.342753 second(s), Total 80, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号