필터 지우기
필터 지우기

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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by