Filter löschen
Filter löschen

Array division of two non-zero arrays returns zero

3 Ansichten (letzte 30 Tage)
GCats
GCats am 18 Jun. 2021
Beantwortet: Matt J am 18 Jun. 2021
Hi everyone!
I have 2 very long arrays X and Y (each with dimensions 16384x1) with the first one with values in the range 0.230286000000000-0.189370000000000 and the second one with range 12.191100000000000-0.041792500000000.
I need to perform array divison Y/X so to get a matrix of 16384x16384. However, when I perform the division all the entries are zero. This is the format I'm using:
format long
W = double(Y)/double(X);
Any hints on where the problem may be?
Thank you!

Akzeptierte Antwort

Matt J
Matt J am 18 Jun. 2021
W = double(Y(:))./double(X(:).');

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by