Increasing the length of an array
Afficher commentaires plus anciens
Hello,
I have the following code line:
model_soot_ratio = ref_soot + ref_soot.(exp(soot_ratio)-1);*
The problem is as follows: ref_soot is a 70*1 array and exp(soot_ratio) is a 50*1 array. Hence the elementwise matrix multiplication is not possible which is what I need.
Is there any way to increase the size of the second array by adding say NULL elements at the end so that the multiplication is valid?
I am realtively new to Matlab programming, so any suggestions to improve will be highly appreciated.
Thank You.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!