필터 지우기
필터 지우기

matlab wont generate vector, [1E-15:10:1E-12]

조회 수: 6 (최근 30일)
Juan Marquez
Juan Marquez 2016년 3월 25일
댓글: Juan Marquez 2016년 3월 25일
It will generate vectors with much simpler inputs, but not this one.

채택된 답변

John D'Errico
John D'Errico 2016년 3월 25일
How many elements does the vector have that you desire to see? That 10 in there is not the number of steps to be taken, but the additive increment.
The first element will be 1e-15.
Ok, then the increment is 10, so we will have 1e-15 + 10. Oh. But that exceeds 1e-12. Darn. So MATLAB gives up at 1e-15. What is the problem, except for not knowing how the colon operator is defined to work? I'll guess that you really wanted to use either linspace or logspace?
Don't forget to use the right display format for that result too. With some display formats, 1e-15 may be displayed as zero.
help format
  댓글 수: 1
Juan Marquez
Juan Marquez 2016년 3월 25일
Haha, that makes so much sense now, thank you (: I was putting the negative without realizing that it would be a decimal. Thank you so much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by