Hello, I have the following code:
M = zeros(50)for x = [20,30] M(x,:) = 1endfor y = [13,25,37] for x = [1:20, 30:50] M(x,y) = 1 endendimagesc(M)
when i get the plot, i see the y-axis is in reverse order i-e starting from 50 at the bottom. In my overall simulation this affects my results. You can see the attached picture .Figure 1 is what i want and figure 2 is what this code gives me. I need to know how can i get.
Best Answer