plotting data from 2 files

조회 수: 1 (최근 30일)
Amna Abdullah
Amna Abdullah 2019년 9월 25일
답변: Sahithi Kanumarlapudi 2019년 11월 6일
I had data files from labcahrt. I exported them as mat files and was able to import them to matlab.
the files have so many files in and I am only intresetd in "data" files
how can I change the values of x-axis to start from 1 to n
how can I plot two different data files into one graph?

답변 (1개)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 11월 6일
The user wants to know how to plot data from two different files on a same graph
Solution:
xlim property can be used to set the values for x-axis. Refer to the following link for more information on xlim
‘hold’ property can be used to plot different data on the same plot. Following link has more information on ‘hold’ property.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by