필터 지우기
필터 지우기

How can i leave the vector result?

조회 수: 3 (최근 30일)
Light
Light 2013년 6월 8일
I have a problem I need a result dB(2)=7 but that result coming. What will i do?
A(1)=4;
A(2)=5;
A(3)=6;
row=2; %row is variable. It is given one.
dB(row)=A(row)+2
dB =
0 7
I need result with brackets like that dB(1), dB(2), dB(3). But it is changed to vector.
Is there another way?
Thanks!

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 8일
If you need dB(2)=7 write
dB(2)=7
If not provide more information
  댓글 수: 5
Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 8일
편집: Azzi Abdelmalek 2013년 6월 8일
What you are asking for is how to display B(n)=
row=2
dB(row)=A(row)+2;
[sprintf('dB(%d)=',row) num2str(dB(row))]
Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 8일
Have you tried the above code? and what do you mean: use it next calculation? can you explain?

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by