MATLAB: How to declare image analysisimage processing Hi All, I would like to declare the following code in Matlab. r = 4/pi atan((R-G)/(R+G)) Any one please help. Thanks, Pugazh Best Answer Do you have the symbolic toolbox? If yes thansyms R Gr = 4/pi * atan((R-G)/(R+G));else you're more than likely going to hve to define R and G in terms of domains. For exampleR = 0:0.01:1;G = 0:0.1:10; %Make sure the matrix dimensions agree. r = 4/pi * atan((R-G)/(R+G));Matrix manipulation is what matlab was designed to do at its basic level. the symbolic stuff is an add on that works pretty well. Related SolutionsMATLAB: Simbolic Toolbox: how to avoid conj() in matrix * try usesyms r real...M=b.'*a MATLAB: Can’t declare symbolic variables A similar report I find about that error message for QtWebKit turned out to be due to the toolkit binary having been improperly copied to the Mac from a remote system.I suggest trying re-installing. No promises. Related QuestionLogarithmic x-Axis for a function handleDeclare array in SimulinkDeclaring variables for codegenDoubt in declaring a function
Best Answer