Matlab Code for the graph

2 visualizaciones (últimos 30 días)
Barry Allen
Barry Allen el 27 de Feb. de 2020
Respondida: TJ Plummer el 17 de Mzo. de 2020
How can i obtain this graph using code?
  7 comentarios
Geoff Hayes
Geoff Hayes el 2 de Mzo. de 2020
From the paper: Corresponding author: Zhiqun Song (zhiqunsy@163.com)
Barry Allen
Barry Allen el 2 de Mzo. de 2020
I have tried but no response:(

Iniciar sesión para comentar.

Respuestas (1)

TJ Plummer
TJ Plummer el 17 de Mzo. de 2020
In this case, it would be fastest to use your ruler to get some of the X and Y points for the three Pa curves. Store them in Matlab vectors. Then run an smoothing operation if needed.
x = [0.1 0.4 0.7 0.9]; % you can add more points if needed
% my eyballing the plot without ruller
Pa5m = [0.25 1.5 1.25 0.25];
Pa10m = [0.6 2 1.5 0.25];
Pa20m = [1.2 2.5 1.75 0.25];
xq = 0.1:0.05:0.9;
Pa5m = interp1(x,Pa5m,xq,'spline');
Pa10m = interp1(x,Pa10m,xq,'spline');
Pa20m = interp1(x,Pa20m,xq,'spline');
The rest of the plotting is straight forward once you have them in vector form. There are also other options for interpolation method that may work better for your problem.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by