Making Process Again With New Values

조회 수: 1 (최근 30일)
Volkan Yangin
Volkan Yangin 2015년 12월 5일
댓글: Volkan Yangin 2015년 12월 6일
Hi everbody.
I have fuel-economy codes and the end of the program, new transmission ratios calculated. I have to calculate new power values etc. with using these new transmission ratios. How can i make the all the process with the new tr. ratios? I don't want to write same codes for this operation.
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 6일
Put all the calculations in a function. Call it once with the original value and get results. Calculate new values from that and call the function again with the updated values and get the results from that. Repeat as often as desired.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by