Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can i draw a line along the plots?
2 次查看(过去 30 天)
显示 更早的评论
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????
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162321/image.png)
3 个评论
回答(1 个)
David Sanchez
2014-5-9
plot( sample_number,str2double(a_component) )
and forget about the marker options
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!