Issue in undefined function in conversion with 2016a version

Hi, I am facing a problem in conversion of RGB to gray scale image using rgb2gray function in the script. It shows that the function is not defined... When I use this is the command window, it works .. but while using that function in the script or the matlab, it doesn't work... Can you help me out at this ???

Answers (1)

sir,may be you should check the image data is valid

Asked:

on 25 Aug 2021

Answered:

on 30 Sep 2021

Community Treasure Hunt

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

Start Hunting!