plotting 2 .mat fikes ith the same variable name
2 次查看(过去 30 天)
显示 更早的评论
hello,
how do i plot data from 2 different .mat files whihc contain data using the sam variable names without overwriting the data
0 个评论
采纳的回答
Katie
2019-11-6
When you load the .mat files you can store the contents in two different variables and then dot index your variables:
Data=load('file1.mat');
Data1=load('file2.mat');
figure;
plot(Data.x, Data.y);
hold on;
plot(Data1.x, Data1.y);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!