How to draw a line on a logical matrix in a given scale?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to transform two vectors (x, y) that describe a straight line into a logical matrix, but on a certain scale.
For example:
x = linspace (2e-2,6e-2,20);
y = 4e-2 * ones (1,20);
a = [x' y'];
plot (x,y);
axis([1e-2 7e-2 1e-2 7e-2])
I want to get a logical matrix (100*100), that has this scale.
2 件のコメント
Adam Danz
2019 年 2 月 22 日
What does it mean to convert a straight line into a logical matrix?
It sounds like meshgrid() may come in handy but it's unclear to me what your goal is.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!