Info
This question is closed. Reopen it to edit or answer.
Index in position 1 exceeds array bounds (must not exceed 1). please do help to fix this error.
1 view (last 30 days)
Show older comments
for y=0:0.1:1
if y(i,j)<=0.5
p(i,j)=2*(y(i,j)^2);
else
p(i,j)=1-2*((1-y(i,j))^2);
end
end
end
end
figure, imshow(p)
3 Comments
Answers (1)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!