There is no edgcol property on the Surface class.

7 Ansichten (letzte 30 Tage)
Giang Nguyen
Giang Nguyen am 16 Mai 2022
Kommentiert: Voss am 17 Mai 2022
Sorry but i don't know fix error , help me please.
I want plot edgcol property is 'interp' and my code.
colorMap=jet;
colormap(colorMap);
x=[0.038
0.0093
0.0093
0
0
2.0005
0.0380
2.0005
0.0093
2.0005]
y=[8.005
4.0030
4.0030
0
0
0
8.0056
0
4.0036
0]
plot (x,y,'LineWidth',5)
z=zeros(size(x));
col=[sigma sigma]
surface([x;x],[y;y],[z;z],[col;col],'facecol','no','edgcol','interp','linew',5);
colorbar
graph is not 'interp'

Akzeptierte Antwort

Voss
Voss am 16 Mai 2022
Use EdgeCol (or the full name EdgeColor) instead of EdgCol, which is missing an e.
surface('EdgeCol','interp')
surface('EdgCol','interp')
Error using surface
Unrecognized property EdgCol for class Surface.
  4 Kommentare
Giang Nguyen
Giang Nguyen am 17 Mai 2022
Thank you very much :3
Voss
Voss am 17 Mai 2022
You're welcome! If that answers your questions, please click "Accept this answer". I appreciate it!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by