How to plot 2 different functions in a single graph?

11 ビュー (過去 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 Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by