Plot line with points at given distance
古いコメントを表示
Hi all,
I need to find a way to plot markers along a line (river course; attached file) with a given distance, e.g. each 500m.
Is there a way to extract these values. The find function does not work in this situation since I only get an empty double column vector. I've used the TopoToolbox before, so the dataset is a STREAMobj which might be diffucult to read for one who hasn't the toolbox installed.
I tried to plot new points with spacing, but since the river is not smoothed and also should not be, point spacing starts and every new edge.
plot(Facet1)
hold on
spacing = 500;
plot(Facet1(1:spacing:end,1),'ro')
In advance thanks for your help.

4 件のコメント
Is this an accurate representation of your data?
S = load('NEU.mat')
S.NEU
Steven Lord
2022 年 2 月 18 日
The MATLAB that is used to run code in MATLAB Answers doesn't have TopoToolbox installed, so it doesn't know how to recreate a STREAMobj object that was created using that toolbox and saved in the MAT-file.
Voss
2022 年 2 月 18 日
Ah, I see. I thought all the toolboxes were available here, so that's good to know.
Ricco Blass
2022 年 2 月 19 日
採用された回答
その他の回答 (1 件)
Catalytic
2022 年 2 月 19 日
1 投票
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
