Why does this example from MathWorks work on Windows but not on Mac?

4 ビュー (過去 30 日間)
Jordan Wiker
Jordan Wiker 2021 年 8 月 24 日
回答済み: Sean de Wolski 2021 年 8 月 24 日
I'm trying to run this example straight from the MathWorks LeanerFMWaveform page.
fs = 500e3;
sLFM = phased.LinearFMWaveform('SampleRate',fs,...
'SweepBandwidth',200e3,...
'PulseWidth',1e-3,'PRF',1e3);
lfmwav = step(sLFM);
nsamp = size(lfmwav,1);
t = [0:(nsamp-1)]/fs;
plot(t*1000,real(lfmwav))
When I run it on MATLAB on Windows, it works as expected and plots the signal. When I run it on MATLAB on Mac, I get this error:
Error using plot
Too many input arguments.
I'm running version R2021a on both operating systems. Why is this not working on Mac?

採用された回答

Sean de Wolski
Sean de Wolski 2021 年 8 月 24 日
which -all plot
It's not win v. mac but that you've shadowed plot on the failing machine.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by