How to make data of equal array length?

15 visualizaciones (últimos 30 días)
Nisar Ahmed
Nisar Ahmed el 31 de Ag. de 2022
Comentada: Abderrahim. B el 31 de Ag. de 2022
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;

Respuesta aceptada

Abderrahim. B
Abderrahim. B el 31 de Ag. de 2022
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 comentarios
Nisar Ahmed
Nisar Ahmed el 31 de Ag. de 2022
Editada: Nisar Ahmed el 31 de Ag. de 2022
@Issa Thanks working
Abderrahim. B
Abderrahim. B el 31 de Ag. de 2022
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by