필터 지우기
필터 지우기

Hi! Can you help me create a vector containing multiples of 10? like 10^-5 to 10^5?

조회 수: 10 (최근 30일)
Can you help me create a vector containing multiples of 10? like from 10^-5 to 10^5?

채택된 답변

Stephen23
Stephen23 2023년 7월 1일
"Can you help me create a vector containing multiples of 10? like from 10^-5 to 10^5?"
Guessing that you really mean integer powers of 10:
format short G
V = 10.^(-5:5)
V = 1×11
1.0e+00 * 1e-05 0.0001 0.001 0.01 0.1 1 10 100 1000 10000 1e+05
  댓글 수: 3
Stephen23
Stephen23 2023년 7월 2일
"what if I want it to be a column vector?"
format short G
V = 10.^(-5:5).'
V = 11×1
1.0e+00 * 1e-05 0.0001 0.001 0.01 0.1 1 10 100 1000 10000

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by