MATLAB Answers

How to declare [X,Y] for image?

5 views (last 30 days)
Syakira Akmal
Syakira Akmal on 3 Apr 2017
Answered: KSSV on 3 Apr 2017
Hi, i would like to know how to declare a coordinate for an image?

  0 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 3 Apr 2017
Let image be of size mxnx3 or mxn depending on binary on rgb. You can define X,Y as follows.
[X,Y]=meshgrid (1:m,1:n)
The above is w.r.t the indices. If you have x axis and y axis values/ positions you can use meshgrid.

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by