Hi everybody,
I'm quite new to the whole matlab experience and I'm hoping someone can help me out with this.
I'm using a script to convert images to texture/mat files, that has worked before. But when put it in my main script and run it, I get the following error, anybody out there who can help =)?
Thank you so much!
Error in function DrawTexture: Missing argument Discrepancy between a specified and supplied argument: Specified Argument Description: direction: Input position: 2 presence:forbidden formats allowed: double minimum M: 1 maximum M: 1 minimum N: 1 maximum N: 1 minimum P: 1 maximum P: 1 Provided Argument Description: direction: Input position: 2 presence: absentError using ScreenUsage:Screen('DrawTexture', windowPointer, texturePointer [,sourceRect] [,destinationRect] [,rotationAngle] [, filterMode][, globalAlpha] [, modulateColor] [, textureShader] [, specialFlags] [, auxParameters]);Error in encoding_2 (line 219) Screen('DrawTexture', win, tex(trial_order(trial+1))); %uses loadJPG_as_Texture.m
Best Answer