필터 지우기
필터 지우기

How to use fsolve with a variable parameter?

조회 수: 2 (최근 30일)
Federico MegaMan
Federico MegaMan 2019년 11월 10일
편집: Habeeb Alasadi 2020년 10월 20일
Hello,
I have a problem with 13 unknows and 12 equations. I already solve the problem imposing T21=0.
I would to variate 1 of the unknows (I prefer T21) to generate various solution.
How can i do?
I attach you my function.
Thank you in advance.

채택된 답변

Stephan
Stephan 2019년 11월 10일
Define the values fot T21 that you want to calculate for. Then use a for loop and call your function inside the loop as often as you need. To do so define T21 as an input argument to your function. Don't miss to store the results of every run of your loop in another row or column of your corresponding run of the loop.
  댓글 수: 8
Federico MegaMan
Federico MegaMan 2019년 11월 11일
Okay, it works perfectly now. Thank you very much!
Habeeb Alasadi
Habeeb Alasadi 2020년 10월 20일
편집: Habeeb Alasadi 2020년 10월 20일
I do not know how to thatnk you, but thanks Stephan.This is what I have been looking for

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by