MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > solve command give z1 

I have given a project to my students where they need to use the solve command to solve a nonlinear equation. Depending on how one writes the equation, we get a solution. In other forms, it gives answer as z1 + 1.2566370614359172953850573533118*k*i 
"Autar " <kaw@eng.usf.edu> wrote in message <ivo1bc$bkd$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <ivod63$aek$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <ivofs9$gm5$1@newscl01ah.mathworks.com>... 
Thanks for the input. I found a solution to the problem. I was not looking for an exact solution but the unique (from the physics of the problem) real solution this problem has. I wanted to avoid having to use a separate function file to use fzero or fsolve etc. But by using vectorizing, inline and char, we can circumvent the problem. 
"Autar " <kaw@eng.usf.edu> wrote in message <ivqjrs$ncd$1@newscl01ah.mathworks.com>... 
Subject: solve command give z1 From: Christopher Creutzig Date: 20 Jul, 2011 11:06:09 Message: 7 of 8 
"Autar " <kaw@eng.usf.edu> wrote in message <ivqjrs$ncd$1@newscl01ah.mathworks.com>... 
This is perfect. It worked. Straightforward and simple solution. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.