Assign a value on the center of a surface using pseudocolor plot
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![Καταγραφή.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/204416/%CE%9A%CE%B1%CF%84%CE%B1%CE%B3%CF%81%CE%B1%CF%86%CE%AE.png)
Using the following code I generate the graph. Values of C are defined in the X,Y coordinates that is not what I want.
What I want is to assign a single value on the surface of each of 3x2 surface. Each value would be defined by a C [3x2] matrix.
close all;clear all;clc
x = linspace(0,10,4);
y = linspace(0,20,3);
[X,Y] = meshgrid(x,y)
C = rand(3,4);
pcolor(X,Y,C)
colorbar
xlabel('x-axis')
ylabel('y-axis')
zlabel('C')
0 commentaires
Réponses (0)
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!