Representing an area on a different axis.

조회 수: 1 (최근 30일)
Luqman Saleem
Luqman Saleem 2024년 8월 22일
답변: Image Analyst 2024년 8월 22일
I have an area bounded by a data set in the (-) plane as shown below. Is it mathematically possible to represent this area (blue color) in (-) plane?
clear; clc;
data = [1.0000 0.9000 0.8000 0.7000 0.6000 0.5000 0.4000 0.3000 0.2000 0.1000 0 -0.1000 -0.2000 -0.3000 -0.4000 -0.5000 -0.6000 -0.6000 -0.6000 -0.6000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000 -0.1000 0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000
-2.1351 -2.1892 -2.2432 -2.2973 -2.3243 -2.3243 -2.3243 -2.3514 -2.2703 -2.2432 -2.2432 -2.2432 -2.2703 -2.2973 -2.2162 -2.1081 -2.0000 -1.0541 0.0270 1.1081 1.3243 2.6486 4.0270 5.2703 6.5676 7.5405 8.2973 9.1081 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000 10.0000];
x = data(1, :);
y = data(2, :);
figure
fill(x, y, 'b','FaceAlpha',0.5)
xlabel('Q_2/Q_4+1')
ylabel('Q/Q_4+5')
set(gca,'FontName','times','fontsize',14)

답변 (1개)

Image Analyst
Image Analyst 2024년 8월 22일
To have different data (like area) on a different/additional axis, see yyaxis
help yyaxis
yyaxis - Create chart with two y-axes This MATLAB function activates the side of the current axes associated with the left y-axis. Syntax yyaxis left yyaxis right yyaxis(ax,___) Input Arguments ax - Target axes current axes (default) | Axes object Examples openExample('graphics/PlotDataUsingTwoYAxesExample') openExample('graphics/AddAxisLabelsExample') openExample('graphics/PlotMultipleSetsOfDataOnEachSideExample') openExample('graphics/ControlColorsForEachSideExample') openExample('graphics/ControlsIndividualPlotColorsForLeftSideExample') openExample('graphics/YYaxisSpecificAxesExample') See also plot, stem, stairs, bar, hold, cla Introduced in MATLAB in R2016a Documentation for yyaxis doc yyaxis

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by