# how to solve a 5th degree equation and write a loop function with it

조회 수: 2 (최근 30일)
Ayman Otmani 2020년 5월 29일
댓글: Stijn Haenen 2020년 5월 29일
hello guys
here is my problem
i have this equation that i need to solve
φ=a*θ*(1-φ)^5
a= 0,00006
θ input for the equation
φ output for the equation
and i need to loop it so it gives me results for each θ that i m gonna implement from a data file
after that i need to plot my results based on position of each point
the problem looks complicated for me coz i m not good in matlab
can anyone help and discuss

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

### 답변 (1개)

Stijn Haenen 2020년 5월 29일
use the functions syms and solve:
syms x
solve(x==a*b*(1-x)^5)
##### 댓글 수: 2없음 표시없음 숨기기
Ayman Otmani 2020년 5월 29일
i used that but i get roots and i dont know what to do after that
Stijn Haenen 2020년 5월 29일
use
s=solve(x==a*b*(1-x)^5);
s=double(s)

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

### 카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by