How to plot 2 different functions in a single graph?

조회 수: 3 (최근 30일)
Lakshmi P
Lakshmi P 2019년 1월 30일
댓글: KSSV 2019년 2월 1일
Hi,I have got 2 functions saved in 2 scripts "trial.m" and "dataandmean.m" respectively. These 2 functions plot 2 different graphs namely mean of the data of a particular month and dailydatas of that month. I need to plot them together in a single graph by calling these functions in a third script called "new.m" .Is it possible? Am fairly new with matlab and coding.
I have attached my codes "trial.m" and "dataandmean.m". Pls go through these. Any help would be greatly appreciated. Thankyou!!!

답변 (1개)

KSSV
KSSV 2019년 1월 30일
REad about hold on
  댓글 수: 5
lakshmi dwaraka
lakshmi dwaraka 2019년 1월 31일
편집: lakshmi dwaraka 2019년 1월 31일
Got it. Thankyou fr your help! The loop is necesaary by the way. I have got about 600 values to plot so without loop its not possible. Anyway thankyou. God bless.
KSSV
KSSV 2019년 2월 1일
You are welcome....

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by