Why do I get a vector of zeros?

조회 수: 9 (최근 30일)
saravan1992
saravan1992 2015년 7월 18일
댓글: saravan1992 2015년 7월 24일
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 18일
편집: Azzi Abdelmalek 2015년 7월 18일
A=[1 2 3]
B=[4 5 6]
out=A./B
Where is the problem with this division?
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 18일
A=[4.47 5.47 5.90 7.25] ;
B=[4.12 2.00 1.12 3.75];
format long;
A./B
saravan1992
saravan1992 2015년 7월 24일
Thank you! It works!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by