How to make data of equal array length?

16 ビュー (過去 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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by