'Envelope' function doesn't work anymore

4 次查看(过去 30 天)
Hi all,
I am experiencing a strange problem with a code that I wrote about a year ago. It seems that the key of my problem is that the 'envelope' function doesn't work anymore.
Essentially, I can't even reproduce the first example from the mathworks website https://uk.mathworks.com/help/signal/ref/envelope.html anymore. Matlab is just 'Busy' for an insanely long time and 'Ctrl + c' doesn't stop the process either.
I have just updated from 2017b to 2018b to see if this solves the problem, but it doesn't. I use Windows 7.
Grateful for any help! Thanks!
  3 个评论
Conny Boldt
Conny Boldt 2019-1-31
编辑:Conny Boldt 2019-1-31
Hi, apologies, the example is
t = 0:1/2000:2-1/2000;
q = chirp(t-2,4,1/2,6,'quadratic',100,'convex').*exp(-4*(t-1).^2);
plot(t,q)
[up,lo] = envelope(q);
hold on
plot(t,up,t,lo,'linewidth',1.5)
legend('q','up','lo')
hold off
It is the first example from the mathworks website.
With ctrl+c, matlab doesn't stop at all, atm I have to force the programme to stop in order to exit the script.
Conny Boldt
Conny Boldt 2019-1-31
Hi Jan, I have tested Ok = UniqueFuncNames().
After uninstalling several tookboxes, the remaining two conflicts are
-- rtwTargetInfo:
C:\Program Files\MATLAB\R2018b\toolbox\coder\coder\rtwTargetInfo.p
C:\Program Files\MATLAB\R2018b\toolbox\coder\foundation\build\tools\registry\rtwTargetInfo.p
Yet I don't even have the coder toolbox in my add-on list? I am a bit confused about what to do now.

请先登录,再进行评论。

回答(1 个)

Luna
Luna 2019-1-31
Maybe this would help you:
restoredefaultpath
rehash toolboxcache
savepath
Please restart Matlab after this execution.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by