Improve my graph in matlab

3 ビュー (過去 30 日間)
F.O
F.O 2017 年 10 月 10 日
回答済み: Walter Roberson 2017 年 10 月 10 日
Hi, I have drawn this graph but i want to improve it. It is rays that goes from one point to get reflected and come back to a point in the upper line . how to put names on the points in the upper line . I want to put 'Earthquake' on the first point and receiver 1 on the second one ,receiver 2 on the 3 one, receiver 4 and receiver 5 on the 5 point.
How to give a different color to every line that goes down and get reflected?
matlab file
x=[0 20];
y=[0 0];
plot(x,y)
hold on;
axis off;
y1=[-5 -5];
plot(x,y1)
hold on;
x2=[ 0 2.5 5 0 5 10 0 7.5 15 0 10 20 ];
y2=[ 0 -5 0 0 -5 0 0 -5 0 0 -5 0];
plot(x2,y2)
title('EX4,SEISMIC MODEL, LAYER OVER A HALFSPACE')

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 10 日
I suggest you look at annotation() -- but sometimes just text() is good enough.

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by