1

i have a domain of interest and this domain will be converted onto finite difference grid with cells (rows,columns)
a 2-D array (cond) contains the conductivity values assigned to each cell in the desired domain
when i use the pcolor command in matlab

pcolor(cond); shading flat

the output figure consider every cell as 1mx1m
if the actual cell differs than 1m (2m, 5m, etc.)
how could i plot using pcolor but each cell will be displayed as it's actual size

1 Answer 1

2

You can specify the axis with pcolor by putting x and y as first arguments:

x = 1:2:10;
y = 1:5:51;
pcolor (x, y, cond);

Best

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.