Azzera filtri
Azzera filtri

Representing an area on a different axis.

3 visualizzazioni (ultimi 30 giorni)
Luqman Saleem
Luqman Saleem il 22 Ago 2024
Risposto: Image Analyst il 22 Ago 2024
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)

Risposte (1)

Image Analyst
Image Analyst il 22 Ago 2024
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

Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

Prodotti


Release

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by