Hi, how do I use my iterations with delta z for example. z = [0:0.1:100] and I need to have the z prior to the one I would use.

댓글 수: 3

Mili Goyal
Mili Goyal 2021년 7월 5일
Could you give more clarity as to what is required maybe via an example?
Christian Joshua Lee
Christian Joshua Lee 2021년 7월 7일
Christian Joshua Lee
Christian Joshua Lee 2021년 7월 7일
It is like this, I need to use the iterations in z for my equation in r.

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

답변 (1개)

KSSV
KSSV 2021년 7월 5일

0 개 추천

z = [0:0.1:100] ;
nz = length(z) ;
for i = 2:n
dz = z(n-1)-z(n)
end
The above can also be achieved using:
dz = diff(z) ;

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 7월 5일

댓글:

2021년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by