pval = [1e-24 1e-23 1e-22 1e-21 1e-20]
How can I initialize such an array by inputting only -24 and -20? Many thanks for your time.

답변 (2개)

Sean de Wolski
Sean de Wolski 2012년 6월 15일

0 개 추천

p = 1*10.^[-24:1:-20]
Walter Roberson
Walter Roberson 2012년 6월 15일

0 개 추천

logspace(-24, -20, 5)

카테고리

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

태그

질문:

2012년 6월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by