# Y-axis value of plot is stored as zero

조회 수: 2 (최근 30일)
vanrapa 2019년 4월 25일
댓글: vanrapa 2019년 4월 29일
Hello,
I am performing a computation and plotting the result.
I have three signals, FA, FB and C (15223x1 complex double). I am computing the output signal such that,
Op = C .* FB / FA
Now I am plotting the output Op (15223x15223 complex double) against time (15223x1 double). By default, matlab ignores the imaginary parts of complex Op which is fine by me.
I am getting a plot, although the variable Op stores 0 (15223x15223 complex double). Now I need to perform further computations with Op and I am not able to do that as it contains only zero.
Why is it storing zero?
Also I have tried to extract the values of axes from the plot, which again contains only zero.
What am I doing wrong? How should I proceed? Pls help me.
##### 댓글 수: 6이전 댓글 4개 표시이전 댓글 4개 숨기기
If Op is what you are plotting then that is where your data is. If non-zero components appear in the plot then they are in Op too.
What you seem to be saying though is you have 15223 plots, of which only two are different, judging by your plot?
You can look at
real( Op )
and find the row/column of non-zero values. You can sum along columns or rows (possibly the abs) and ignore all below a threshold if the rest are close to 0, but not precisely zero
vanrapa 2019년 4월 29일
Thanks. I found out the nonzero values by the sum of the columns of 'Op'. Although I already found it a few days before but ignored it considering they were of the order e-07 and hence close to zero. I forgot that my graph was also scaled the same way!
Anyways, thanks a lot.

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

### 카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

R2017a

### Community Treasure Hunt

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

Start Hunting!

Translated by