Function to scale image
Show older comments
Could someone kindly point out the syntax/ other error which is preventing my function to scale image from running properly?
function [scaledimage] = scalefunc(img, value)
scaledimage = value*img; %ensures that multiplication occurs element wise;
end
This is the output I am currently getting-
Not enough input arguments.
Error in scale (line 2)
scaledimage = value*img; %ensures that multiplication occurs element wise
Accepted Answer
More Answers (0)
Categories
Find more on Display 2-D Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!