I don't know how to add the dots

1 visualización (últimos 30 días)
Ye
Ye el 29 de Oct. de 2022
Respondida: CHIRANJIT DAS el 29 de Oct. de 2022
Can someone body help me put dots? I have already type the code for the graph, but can't code to put dots in the graph like that
clc, clear;
x = [0 : 0.1 : 12] * pi;
y = sin(x);
z = cos(3 * x);
figure();
plot3(x,y,z, 'color','r');
.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 29 de Oct. de 2022
Editada: KALYAN ACHARJYA el 29 de Oct. de 2022
x = [0 : 0.1 : 12] * pi;
y = sin(x);
z = cos(3 * x);
figure();
plot3(x,y,z, '--d','color','b','markerfacecolor','y','markersize',4);
#Change color as per requirements

Más respuestas (1)

CHIRANJIT DAS
CHIRANJIT DAS el 29 de Oct. de 2022
@Ye Try playing with markers..Like this
plot3(x,y,z,'-s','MarkerSize',10,...
'MarkerEdgeColor',[1 .6 .6],...
'MarkerFaceColor','g')
More customization options can be explored here.
Cheers

Categorías

Más información sobre Environment and Settings 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