Plotting a 4D graph with the fourth dimension using color (a 3D graph with the fourth dimension represented using colors)
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to know how to plot R0 (basic reproduction number of a disease) against three given parameters on a 3D plot where the x-, y-, and z- axes represent the three parameters and a color scheme represents R0. So, the graph should essentially be a 3D plot, but the fourth dimension (depicting R0) should be in terms of a color scheme.
In the current example, I wish to plot R0 against the three parameters beta, p, and phi which could all vary between 0 and 1. The formula for R0 and the parameters are given below.
c = 0.01;
%beta = 0.4;
gamma = 0.2;
theta = 0.2778;
%p = 0.05;
%phi = 0.95;
epsilon = 0.084;
delta = 0.011;
mu = 0.000027;
R0 = (epsilon*c*beta*theta*(mu+(1-phi)*p))/(mu*(mu+p)*(mu+epsilon)*(mu+gamma+delta))
I would highly appreciate if someone could help me on this. Thanks a lot in advance!
0 commentaires
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!