How do I scatter the first plot into dots instead of the dash that it is set on?

3 ビュー (過去 30 日間)
Derek Paul
Derek Paul 2017 年 3 月 9 日
回答済み: KSSV 2017 年 3 月 9 日
syms y(x) x
y1=dsolve(diff(y,x,2)+y==0);
y2=dsolve(diff(y,x,2)+y==-cos(1.1*x));
y2=simplify(y2);
h=ezplot(cos(x)+sin(x))
set(h,'LineStyle','-.')
hold on
ezplot(cos(x)+sin(x)+100*cos(1.1*x)/21)
title('Plots of solutions')

回答 (1 件)

KSSV
KSSV 2017 年 3 月 9 日
Change the line
set(h,'LineStyle','-.')
to
set(h,'LineStyle',':')

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by