MATLAB: Error in writing an image

image processing

I have an error in the code below in writing an image please help
imwrite((gsq, []),strtemp)
Expression or statement is incorrect–possibly unbalanced (, {, or [
I have posted question regarding this and have got answer,but still getting same error

Best Answer

Why do you have the () and [] in there? You're supposed to be passing a numerical array and a string that is the filename. Did you look up the help for imwrite?
Related Question