Making matrix from coordinates
7 ビュー (過去 30 日間)
古いコメントを表示
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 10 月 11 日
編集済み: Ameer Hamza
2020 年 10 月 11 日
See meshgrid()
x; % vector of x-values
y; % vector of y-values
[X, Y] = meshgrid(x, y)
5 件のコメント
Ameer Hamza
2020 年 10 月 11 日
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!