Cycle for to save a matrix

2 ビュー (過去 30 日間)
Miguel Albuquerque
Miguel Albuquerque 2022 年 6 月 11 日
回答済み: Matt J 2022 年 6 月 11 日
Hey guys thanks in advance for reading this and helping me.
I have a matrix range_compression(2032 x 400). For each column of that matrix I want to apply a function(freq2time).This function transforms a vector in frequency domain to a vector in time domain.
I want that after the apllication of the function for each column of range_compression, it saves the variable range_compressed, column by column in another matrix. And for each time_compression variable, multiply by speed of light and save in another matrix.
How can I do this, thank you. This is the code I have, but im having difficulties on doing the rest
[nr,mr]=size(Range_compression);
for i=1:mr
[time_compression,range_compressed]=freq2time(mr,doppler_freqSurv);

採用された回答

Matt J
Matt J 2022 年 6 月 11 日
[nr,mr]=size(Range_compression);
[time_compression,range_compressed]=deal(nan(nr,mr));
for i=1:mr
[time_compression(:,i),range_compressed(:,i)]=freq2time(mr,doppler_freqSurv);
end
time_compression=time_compression*speed_of_light;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by