boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EE版 - 请教诸位大牛一个matlab问题
相关主题
Matlab计算精度请教
电力电子仿真软件
信号处理搞MATLAB将来是不是找不到工作啊。。。
请推荐基本Matlab通信仿真的书吧?
有人知道怎么从matlab的图像里把数据提取出来吗?
英特尔的双核好像跑程序只比单核快30%?
请wavelet的专家进来指教一下,谢谢
IE 想转EE的Power,有几成可能
求教 这个积分怎么算 (转载)
zz学生拒绝当千老,流泪流了一夜 (转载)
相关话题的讨论汇总
话题: matlab话题: circshift话题: 诸位话题: end话题: maybe
进入EE版参与讨论
1 (共1页)
j*******o
发帖数: 11
1
最近在用MATLAB写一段仿真,发现其中的circshift这条命令非常的费时,基本上80%
的时间都花在这句上了。有没有什么其他的命令可以替代这句的,让效率更高一点?多
谢多谢
k**f
发帖数: 372
2

Maybe you can try something like
a = [a(end), a(1:end-1)];
to see if the program runs a bit faster.
If this IS the bottleneck of you simulation, you may have to write a C-mex
implementation and use data structures other than the plain c array, such as
a circular buffer.

【在 j*******o 的大作中提到】
: 最近在用MATLAB写一段仿真,发现其中的circshift这条命令非常的费时,基本上80%
: 的时间都花在这句上了。有没有什么其他的命令可以替代这句的,让效率更高一点?多
: 谢多谢

j*******o
发帖数: 11
3
多谢多谢
我试试看

as

【在 k**f 的大作中提到】
:
: Maybe you can try something like
: a = [a(end), a(1:end-1)];
: to see if the program runs a bit faster.
: If this IS the bottleneck of you simulation, you may have to write a C-mex
: implementation and use data structures other than the plain c array, such as
: a circular buffer.

z*****n
发帖数: 7639
4
Just a reminder:
You need to know this solution applies to only one
dimension of your matrices, and shifts only in
one direction.
circshift() can do n-dimentional shift and in both
directions.

【在 j*******o 的大作中提到】
: 多谢多谢
: 我试试看
:
: as

j*******o
发帖数: 11
5
嗯,对,我目前也就是对一维的数据进行操作
再次感谢
1 (共1页)
进入EE版参与讨论
相关主题
zz学生拒绝当千老,流泪流了一夜 (转载)
为什么不见华人的ICC
Re: 什么样的RESEARCH才能算是PHD的LEVEL?
问个Orcad-Pspice仿真的问题,大牛帮一下,谢谢!
C++ 求助!
如何在仿真软件中设置倾斜入射的平面波?
ansoft仿真的一个问题
大家一般写一篇paper要花多长时间
学电子的朋友请帮忙看看?
请教一个cadence问题
相关话题的讨论汇总
话题: matlab话题: circshift话题: 诸位话题: end话题: maybe