import multiple mat files together

4 ビュー (過去 30 日間)
usman ahmed
usman ahmed 2022 年 7 月 1 日
回答済み: Rohit Kulkarni 2022 年 7 月 2 日
how can i import several .mat files together and plot it in one plot
  2 件のコメント
Geoff Hayes
Geoff Hayes 2022 年 7 月 1 日
@usman ahmed - you can use load to load the variables from each file and then plot the data for each.
usman ahmed
usman ahmed 2022 年 7 月 1 日
ok i'll try

サインインしてコメントする。

回答 (1 件)

Rohit Kulkarni
Rohit Kulkarni 2022 年 7 月 2 日
Hi,
You can use load for loading files, plot for plotting, and hold on and hold off for plotting multiple plots on one.
Hold on and off can be used like this:
plot(vector_1)
hold on
plot(vector_2)
plot(vector_3)
hold off
"hold on" will let you add multiple plots on a single plot, and then you can write "hold off" to stop this

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by