How to make data of equal array length?

조회 수: 15 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2022년 8월 31일
댓글: Abderrahim. B 2022년 8월 31일
Hi,
I have following data and how I can make FD and AD of equal size of N?
FD = 0:0.225399;
AD = 0:0.004045;
N = 1:1:115;

채택된 답변

Abderrahim. B
Abderrahim. B 2022년 8월 31일
Hi!
Try this:
N = 1:1:115 ;
size(N)
ans = 1×2
1 115
nL = length(N) ;
FD = linspace(0,0.225399, nL) ;
size(FD)
ans = 1×2
1 115
AD = linspace( 0, 0.004045, nL) ;
size(AD)
ans = 1×2
1 115
  댓글 수: 2
Nisar Ahmed
Nisar Ahmed 2022년 8월 31일
편집: Nisar Ahmed 2022년 8월 31일
@Issa Thanks working
Abderrahim. B
Abderrahim. B 2022년 8월 31일
My pleasure!

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

추가 답변 (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