필터 지우기
필터 지우기

Creating Excel-like graphs

조회 수: 2 (최근 30일)
David RA
David RA 2013년 3월 15일
답변: Sonesson 2024년 1월 2일
Hi,
I would like to trace excel-like graphs. Meaning I have a pair of XY data of size 7 and if I plot with MatLab it joins the points with straight lines. I would like to do the same thing that the option "Scatter with smoothed lines and markers" does in Excel.
Thanks!

답변 (1개)

Sonesson
Sonesson 2024년 1월 2일
Hello David,
The plot command takes a variety of colors and line- and marker-styles to customize your plots as seen here, read this documentation for more info.
x = linspace(-pi,pi,50);
y = sin(x);
plot(x,y,'ro-')
If the "smooth" line is the crux for you, might I suggest looking at this answer.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by