fsolve, complex number. Optimizer appears to be converging toa point which is not a root. Norm of relative change in X is less than max(options.TolX^2,eps)but sum-of-squares of function values is greater than or equal to sqrt(options.TolFun) Try ag
Hi, as stated in the documentation, fsolve handles only real numbers. If you want to use complex numbers, separate the numbers into real and imaginary parts so that fsolve sees only real numbers. Alan Weiss MATLAB mathematical toolbox documentation ALESSANDRO wrote: Hi all, I have a problem with my... 2 Dec 2009 12:06
Imrect rotate
I would like to select a rectangular area on an image. The thing is, this rectangle is not aligned with the axis - it must be rotatable. After selecting the area, I would like to create a rectangular template image of a fixed size of the selected area. imrect does not allow me to rotate the rectangle - what other o... 2 Dec 2009 09:50
Matlab embedded function code path
Hello, I am using of Matlab embedded function in Simulink. The compilation of my M-function is successful as well as the Simulink run. Still, if I run again the simulink block in a different matlab path, a new compilation starts. Is there a way to indicate the path of already compiled M-files? Many thanks i... 3 Dec 2009 08:07
peak signal to nois ratio(psnr)
I use the video and is divided into a set of picture will I pass these pictures on digetal video broadcast terestial (dvb-t), and I want to measure peak signal to noise ratio (psnr) the results came from (40-70 and inf) in the event that thesignal to noise ratio the equal to (5-18) How do I know whether the results ar... 2 Dec 2009 05:25
3d voronoi visualization
Hi, when i use 'voronoin' for example, x=zeros(10,3); [v,c]=voronoin(x); then Matlab gives vertices('v') and the vertices lists which constitute cells('c') but when using the function 'voronoi' for 2D voronoi tessellation, then function 'voronoi' gives diagram plot automatically. But 'voronoin' doe... 2 Dec 2009 02:09
draw a triangle
Hi everybody, i need your help i need to ask how to draw a triangle in matlab? i have a image which size 140x140. now i want to make a biner image which a triangle as a object (represented by color white). the background's color is black. i'm really need your help best regards umi ... 3 Dec 2009 01:36
ode45 to plot state space variables..help!!
I am trying to work a state space solution and am getting errors in Matlab. This is being done by using ode45 to plot the solutions for the state variables (x1,x2). Given: A = [ 0 1 ; 2 4] B = [ 0 2] C = [1 0] % x1 and x2 refers to x1 = 1 and x2 = 0 D = [0] Code: x0= [1 0] A=[-10 1; -0.02 -2] ... 1 Dec 2009 23:58
inputParser & validateattributes
There must be a better solution to this problem. I want a validator to use with inputParser that combine two or more functions, which don't return any argument, e.g. validateattributes. This is my solution is test ??? Error using ==> test at 11 Argument 'maxHeight' failed validation with error: Expect... 1 Dec 2009 23:58
setting color with data
"Mathew " <Kalaeimh(a)yahoo.com> wrote in message <hf46iv$3e3$1(a)fred.mathworks.com>... I am generating a distribution graph using "pcolor". here are my questions: 1- How can I set the "color data min" and "color data max" to be constant value in M file? In each run that I generate the graph, it changes based on... 18 Dec 2009 09:23
Error passing initial condition vector to ODE solver
Hey all, I am trying to fit parameters to a kinetic model from experimental data through least squares regression, basically just using fmincon, nothing fancy. I am, however, stuck with an issue; MatLab is telling me: ??? Error using ==> odearguments at 116 Solving RATE_FUNC requires an initial condition vector ... 4 Dec 2009 04:06