How to plot 2 different functions in a single graph?

3 Ansichten (letzte 30 Tage)
Lakshmi P
Lakshmi P am 30 Jan. 2019
Kommentiert: KSSV am 1 Feb. 2019
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!!!

Antworten (1)

KSSV
KSSV am 30 Jan. 2019
REad about hold on
  5 Kommentare
lakshmi dwaraka
lakshmi dwaraka am 31 Jan. 2019
Bearbeitet: lakshmi dwaraka am 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.
KSSV
KSSV am 1 Feb. 2019
You are welcome....

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by