Thread Closed

MATLAB and Mathematica help

 
Share Thread Thread Tools
Feb17-10, 07:49 PM   #1
 

MATLAB and Mathematica help


Hi all,
In Mathematica I have used the NSolve function to give me all the possible values of a1, a2 and a3, given the parameters I have set for the equations, for example:

NSolve[{an1 == a1, an2 == a2, an3 == a3, an4 == a4} /. params, {a1, a2, a3}]

Is it possible to do this in MATLAB to find the different values of a1, a2 and a3?

Also, in MATLAB I have a While loop saved as a funtion m-file which is used in another m-file within a For loop that includes a count i=1:1000. I want to do this in Mathematica so that:
For i=1:1000,
(then my while loop function)
If (conditions), count = count+1
End.
How do I do this in Mathematica?
Thanks!
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
Thread Closed
Thread Tools


Similar Threads for: MATLAB and Mathematica help
Thread Forum Replies
matlab vs mathematica Math & Science Software 20
how write the 'for' loop in mathematica Math & Science Software 11
how to write matlab code in mathematica Math & Science Software 0
Matlab/Mathematica/Maple which is better? Math & Science Software 7
Matlab/Mathematica help! Math & Science Software 1