plotting 2 .mat fikes ith the same variable name

2 ビュー (過去 30 日間)
Chantal Lewis
Chantal Lewis 2019 年 11 月 6 日
回答済み: Katie 2019 年 11 月 6 日
hello,
how do i plot data from 2 different .mat files whihc contain data using the sam variable names without overwriting the data

採用された回答

Katie
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 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics and Visualization についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by