Info

This question is closed. Reopen it to edit or answer.

how can i solve this problem ?

1 view (last 30 days)
hameed farhan
hameed farhan on 15 Mar 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
<<
>>
  2 Comments
Ameer Hamza
Ameer Hamza on 22 Apr 2018

Can you paste complete error message? From the given image it appear that you should move the line

Y = imread('xyz.jpg');

at the start of the script.

Rik
Rik on 22 Apr 2018

You should really paste your code as text (use the {}Code button for formatting), and include the entire error message. It gives information about the nature of the error. Does the variable Y exist? Does it contain an array that is a valid input so it can be written to jpeg? Is the q variable valid (i.e. is it indeed a scalar in the range 0-100)?

It would be easy to see which of these occurred if you look at the complete message.

Answers (0)

Community Treasure Hunt

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

Start Hunting!