フィルターのクリア

Plotting Excel Sheet of 0s and 1s inkjet printer visualization

2 ビュー (過去 30 日間)
Sam Schiavitti
Sam Schiavitti 2021 年 11 月 15 日
編集済み: dpb 2021 年 11 月 15 日
Hello. I currently have an excel sheet of 0s and 1s. I am trying to visualize an inkjet print where ther 0s say dont print and the 1s say print. I My hope is that I can convert the 30x30 excel file into a plot on matlab where labels the print points with a dot on a graph. How would I accomplish this.

回答 (1 件)

dpb
dpb 2021 年 11 月 15 日
編集済み: dpb 2021 年 11 月 15 日
How about
I=readmatrix('yourfile.xlsx');
imagesc(~I)
colormap(gray)
If you don't want an image, then try
[r,c]=ind2sub(size(I),find(~I)); % locate zeros
MrkrSize=36;
hSc=scatter(r,c,MkrSize,'MarkerFaceColor','k');
scatter draws marker area proportional to the marker size parameter, a radius of 6 with the plot() function is same visually as area of 36 with scatter()
  1 件のコメント
Sam Schiavitti
Sam Schiavitti 2021 年 11 月 15 日
Is there any way to edit the size of the squares in the plot. That way I can see what it would look like if i were to print with different size inkjet droplpets?

サインインしてコメントする。

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by