How to plot 2 different functions in a single graph?

3 views (last 30 days)
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!!!

Answers (1)

KSSV
KSSV on 30 Jan 2019
REad about hold on
  5 Comments
lakshmi dwaraka
lakshmi dwaraka on 31 Jan 2019
Edited: lakshmi dwaraka on 31 Jan 2019
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.

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!