I need to create letter K with 20 pixel by 20 pixel by plotting
2 ビュー (過去 30 日間)
古いコメントを表示
Just start MatLab, I can plot the letter on 5x5 matrix but a 20x20 is to much
2 件のコメント
採用された回答
KALYAN ACHARJYA
2019 年 11 月 13 日
編集済み: KALYAN ACHARJYA
2019 年 11 月 13 日
"Now I want to know how to rotate this letter 90 degrees"
n=5; % size of matrix
x=[2 2 2 3 4 4 4 ]; % x-coordinate
y=[1 2 3 2 2 3 1 ] ; % y-coordinate
y_new=n-y; % upside down for y-coordinate
figure,plot(x,y_new,'o','MarkerEdgeColor','b','MarkerFaceColor','b','MarkerSize',12), axis([0 n 0 n]), axis square, grid on;
figure,plot(y_new,x,'o','MarkerEdgeColor','b','MarkerFaceColor','b','MarkerSize',12), axis([0 n 0 n]), axis square, grid on;
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で 3-D Scene Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!