How can I create three 2,2,x subplots (total 12 subplots in 3 plots) from my surface of my FourierAnalysis?
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I create three 2,2,x subplots (total 12 plots in 3 subplots) from my surface of my FourierAnalysis?
I want to do a FourierAnalysis of the following Frequencies:
fAnalysis = [20,25,30,35,40,45,55,65,75,85,105,130]; % Hz
Actually i get 12 single Plots when I compile:
%% spatial analysis
fAnalysisBin = round(fAnalysis/dF);
% Todo: iterate for all subwoofers
for iFreq = 1:length(fAnalysis)
XFreq = X_tmp(fAnalysisBin(iFreq),:);
XFreq = reshape(XFreq,nMic,nPos);
% Todo: Subplots!
figure
surf(20*log10(abs(B)))
end
How can I plot the frequencies
20, 25, 30, 35 40, 45, 55, 65 75, 85, 105, 130
in a 2x2 subplot so I get 3 windows within 4 plots of the belongig frequencies?
When I try to subplot it, it gives me 12 windows within 3 empty plots and 1 frequencies
Thank you all for helping!
댓글 수: 0
답변 (1개)
Fangjun Jiang
2020년 3월 20일
figure(1)
subplot(2,2,1);
% more subplot
figure(2);
subplot(2,2,2);
% more subplot
figure(3);
subplot(2,2,4)
% more subplot
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!