Why do I get a vector of zeros?

9 Ansichten (letzte 30 Tage)
saravan1992
saravan1992 am 18 Jul. 2015
Kommentiert: saravan1992 am 24 Jul. 2015
Hello, I am a new matlab user and I am trying to divide two vectors that contain numbers to create a new one. So I am typing the division like this:
Vector=Alpha./Beta
and I get a vector full of zeros.
Do you have any idea why this happens or how I could fix it?
Thank you

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 18 Jul. 2015
Bearbeitet: Azzi Abdelmalek am 18 Jul. 2015
A=[1 2 3]
B=[4 5 6]
out=A./B
Where is the problem with this division?
  3 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 18 Jul. 2015
A=[4.47 5.47 5.90 7.25] ;
B=[4.12 2.00 1.12 3.75];
format long;
A./B
saravan1992
saravan1992 am 24 Jul. 2015
Thank you! It works!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by