Plotting Two .mat Files
显示 更早的评论
Hi All,
I am trying to plot two .mat files using a function that was previously made. The function is used to plot only one set of .mat files data. Thus, in each figures it represents only one set of data. My intention is to use two sets of data and plot it in the same figures, if possible figure (1) and figure (2). So the data that will be plot would be the 'NouMovement0001.mat' and the other one is 'NouMovement0002.mat'. In the 3D plot, I should be able to distinguish between these datas by color coding it like for example in the figure (2) right?
Please let me know as I am trying to figure out how to actually plot these two sets of .mat files datas. Do I have to redefine to combine both datas or is there another way to plot this.
fileName = 'NouMovement0001';
curDir = pwd;
Data = load_qualisys_mat(curDir, fileName);
Markers = Data.Markers ;
figure(1)
iFrame = 1000 ;
Fields = fieldnames(Markers) ;
draw_stick_picture(Markers,Fields,iFrame,'xyz', 'ko')
axis equal
grid on
figure(2)
plot(Markers.RAnkle(:,3), 'b') ; hold on
plot(Markers.LAnkle(:,3), 'r') ;
As you can see, there are two figures, I am grateful if any of you able to guide me at least one of them. The first figure is a 3D graph and the load_qualisys_mat is the function that was made prior to this.
Thanks.
7 个评论
madhan ravi
2018-12-23
upload your mat files
Guillaume
2018-12-23
Maybe I'm blind, but I can't see an actual question or any description of a problem.
madhan ravi
2018-12-23
me neither
SYAFIQ FALIQ ALFAN
2018-12-23
SYAFIQ FALIQ ALFAN
2018-12-23
Are Mjaavatten
2018-12-23
Still not easy to guess what you are trying to do. I think we need to be able to run your code, so please upload load_qualisys_mat.m and draw_stick_picture.m plus any functions used by those functions.
SYAFIQ FALIQ ALFAN
2018-12-23
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Biomedical Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!