Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

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!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB and Mathematica help

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - MATLAB Mathematica help | Date |
---|---|

Mathematica Numerical vs. Monte-Carlo Simulations | May 2, 2016 |

C++ vs Python vs Mathematica vs Matlab? Whats the difference | Aug 15, 2015 |

What is program is better mathematica or matlab? | Jun 14, 2015 |

Matlab vs Mathematica for computing derivatives | Sep 4, 2014 |

Matlab/Mathematica help! | Apr 9, 2006 |

**Physics Forums - The Fusion of Science and Community**