필터 지우기
필터 지우기

i am trying to made a code to int the numbers of time i want

조회 수: 1 (최근 30일)
Bader Herzallah
Bader Herzallah 2020년 5월 7일
편집: Rik 2020년 5월 7일
syms x n y z a;
n=input('enter number of int');
for y=1:n;
z=x^2;
a=int(z);
z=a;
end
like i want to int x^2 two time the answer will be x^4/12 but in matlab but i cant get the int to intgrate the new value of z

채택된 답변

David Wilson
David Wilson 2020년 5월 7일
Remove the z=x^2 from the loop.
syms x n y z a;
n= 5
z=x^2;
for y=1:n
z=int(z)
end

추가 답변 (0개)

카테고리

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