Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can i draw a line along the plots?

2 visualizaciones (últimos 30 días)
Praveen
Praveen el 8 de Mayo de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I need to plot it as a line, but here it plots as digital data with no connection from previous to current data. This the data that i'm receiving from arduino from 4 sensors thru serial port
plot(sample_number,str2double(a_component),'--gs',... 'LineWidth',2,... 'MarkerSize',10,... 'MarkerEdgeColor','y',... 'MarkerFaceColor',[0.5,0.5,0.5]);
plot(sample_number,str2double(b_component),'--gs',... 'LineWidth',2,... 'MarkerSize',10,... 'MarkerEdgeColor','m',... 'MarkerFaceColor',[0.5,0.5,0.5]);
plot(sample_number,str2double(c_component),'--gs',... 'LineWidth',2,... 'MarkerSize',10,... 'MarkerEdgeColor','c',... 'MarkerFaceColor',[0.5,0.5,0.5]);
plot(sample_number,str2double(d_component),'--gs',... 'LineWidth',2,... 'MarkerSize',10,... 'MarkerEdgeColor','r',... 'MarkerFaceColor',[0.5,0.5,0.5]); xlabel('Time'); ylabel('Accelerometer value'); title('Patient Based Monitoring (1st Sensor Readings)'); axis auto; grid on; drawnow(); disp(data);
Can anyone help me on this????
  3 comentarios
Praveen
Praveen el 9 de Mayo de 2014
But it does not draw as a line.. it plots discontinuous plots.. can u send a code to plot it as a line...
Sara
Sara el 9 de Mayo de 2014
Try attaching the data so we can play around with them (one set will do).

Respuestas (1)

David Sanchez
David Sanchez el 9 de Mayo de 2014
plot( sample_number,str2double(a_component) )
and forget about the marker options

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by