plotting 2 .mat fikes ith the same variable name

hello,
how do i plot data from 2 different .mat files whihc contain data using the sam variable names without overwriting the data

 Risposta accettata

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);

Più risposte (0)

Categorie

Scopri di più su Graphics Objects in Centro assistenza e File Exchange

Prodotti

Tag

Richiesto:

il 6 Nov 2019

Risposto:

il 6 Nov 2019

Community Treasure Hunt

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

Start Hunting!

Translated by