How can I solve this issue?
Afficher commentaires plus anciens
Unable to perform assignment because the size of the left side is 153-by-1 and the size of the right side is 51-by-1-by-3.
I should run for loop 500 times.
d_pred=zeros(153*500);
ne=500
for i = 1 : ne
d_pred(:,i) = calcola_dati_pre_stack(Vpsim(:,i), Vssim(:,i), Rhosim(:,i), wavelet, ang);
end
3 commentaires
Rik
le 27 Nov 2021
Apparently your function has an output of length 51, not 153. Why did you expect otherwise?
RADWAN A F ZEYADI
le 27 Nov 2021
Modifié(e) : RADWAN A F ZEYADI
le 27 Nov 2021
I think you might have attached the wrong file. calcola_dati_pre_stack() calls CMP_zoepprtiz(), which is not included. You included applico_RPM_II(), which does not appear to be needed by any of these calculations.
You also might want to make the usage example above complete enough that it can actually replicate the error. As it is, the preallocation is bogus and there are missing variables.
This may be as simple as fixing some indexing issues in the function files, or if nothing else, simply reshaping the output to be a vector.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Signal Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!