anyone the method of extented white metzner?

1 次查看(过去 30 天)
i use the method of extented white metzner and i have 4 non linear equations. i put in a function but dont work.
anyone can help me please?
  1 个评论
Steven Lord
Steven Lord 2023-2-8
What does "dont[sic] work" mean in this context?
  • Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
  • Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
  • Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.

请先登录,再进行评论。

回答(1 个)

Raghav
Raghav 2023-4-6
Hi,
Based on the information provided it's possible that there could be several reasons why your function is not working properly in MATLAB. Here are a few potential issues to consider:
  1. Check your syntax: Make sure that your function is written with the correct MATLAB syntax.
  2. Define all necessary variables: Make sure that you have defined all the necessary variables in your function. If any variables are missing, your function may not work as expected.
  3. Check your function inputs and outputs: Make sure that your function has the correct input and output arguments. The input arguments should be the variables that you want to solve for, and the output argument should be the function value.
  4. Check for errors: Use the MATLAB debugger to check for any errors in your function. You can set breakpoints in your code and step through it to see where the error occurs.
  5. Consider using a solver: If you're still having trouble getting your function to work, consider using a solver in MATLAB such as fminsearch or fsolve to help you solve your system of equations.
It's difficult to provide more specific advice without seeing your code, but hopefully these suggestions will help you troubleshoot your function and get it working correctly.
Thanks,
Raghav Bansal

类别

Help CenterFile Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by