| 1 | 1/1 | 返回列表 |
| 查看: 310 | 回復(fù): 0 | ||
Msan新蟲 (初入文壇)
|
[求助]
急急急。。。出錯,求大神提示
|
|
%混沌信號================================================ global a; global b; global c; %r=[-c*(x(1)-x(2));a*x(1)-x(2)-x(1)*x(3);b*(x(1)*x(2)-x(3))]; clear; global a; global b; global c; b=8/3;c=10;a=28; t0=[0,100];f0=[1,1,1]; Y=[]; w0=1.2; T=2*pi/w0; [t,x]=ode45(@lorenz,t0,f0); figure(1); subplot(2,1,1); plot(t,x(:,1)); x=x(:,1); subplot(2,1,2); plot(t,x); %========================================================== Fs=100;%采樣頻率 n=0:1/Fs:1; %產(chǎn)生含有噪聲的序列 u=randn(1,length(n)); u=u*sqrt(1); power_u=var(u); %================================ %================================== xn=3*sin(2*pi*5*n); figure(2); subplot(2,2,1); plot(n,xn); %======================================= nfft=4096; cxn=xcorr(xn,\'unbiased\' ); %計算序列的自相關(guān)函數(shù) CXk=fft(cxn,nfft); Pxx=abs(CXk); index=0:round(nfft/2- 1); k=index*Fs/nfft; plot_Pxx=10*log10(Pxx(index+1)); subplot(2,2,2); plot(k,plot_Pxx); %============================================== xn=3*sin(2*pi*5*n)+u; subplot(2,2,3); plot(n,xn); %======================================== nfft=4096; cxn=xcorr(xn,\'unbiased\' ); %計算序列的自相關(guān)函數(shù) CXk=fft(cxn,nfft); Pxx=abs(CXk); index=0:round(nfft/2- 1); k=index*Fs/nfft; plot_Pxx=10*log10(Pxx(index+1)); subplot(2,2,4); plot(k,plot_Pxx); 出錯提示 ??? Error using ==> lorenz Too many input arguments. Error in ==> odearguments at 109 f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0. Error in ==> ode45 at 173 [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ... Error in ==> Untitled35 at 15 [t,x]=ode45(@lorenz,t0,f0); |
找到一些相關(guān)的精華帖子,希望有用哦~
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 286分人工智能專業(yè)請求調(diào)劑愿意跨考! +3 | lemonzzn 2026-03-17 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 一志愿蘇州大學(xué)材料求調(diào)劑,總分315(英一) +3 | sbdksD 2026-03-19 | 3/150 |
|
|
[考研] 0817 化學(xué)工程 299分求調(diào)劑 有科研經(jīng)歷 有二區(qū)文章 +18 | rare12345 2026-03-18 | 18/900 |
|
|
[考博] 申博26年 +3 | 八6八68 2026-03-19 | 3/150 |
|
|
[考研] 求調(diào)劑 +3 | Mqqqqqq 2026-03-19 | 3/150 |
|
|
[考研] 一志愿天大材料與化工(085600)總分338 +5 | 蔡大美女 2026-03-13 | 5/250 |
|
|
[考研] 0703化學(xué) 305求調(diào)劑 +4 | FY_yy 2026-03-14 | 4/200 |
|
|
[考研] 一志愿武理材料305分求調(diào)劑 +5 | 想上岸的鯉魚 2026-03-18 | 6/300 |
|
|
[考研] 295求調(diào)劑 +3 | 一志愿京區(qū)211 2026-03-18 | 5/250 |
|
|
[考研] 297求調(diào)劑 +8 | 戲精丹丹丹 2026-03-17 | 8/400 |
|
|
[考研] 0703化學(xué)336分求調(diào)劑 +6 | zbzihdhd 2026-03-15 | 7/350 |
|
|
[考研] 277調(diào)劑 +5 | 自由煎餅果子 2026-03-16 | 6/300 |
|
|
[考研] 有沒有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] 材料與化工專碩調(diào)劑 +5 | heming3743 2026-03-16 | 5/250 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] [導(dǎo)師推薦]西南科技大學(xué)國防/材料導(dǎo)師推薦 +3 | 尖角小荷 2026-03-16 | 6/300 |
|
|
[考研] 0703一志愿211 285分求調(diào)劑 +5 | ly3471z 2026-03-13 | 5/250 |
|
|
[考研] 277材料科學(xué)與工程080500求調(diào)劑 +3 | 自由煎餅果子 2026-03-16 | 3/150 |
|
|
[考研] 327求調(diào)劑 +6 | 拾光任染 2026-03-15 | 11/550 |
|