I don't get plot in matlab

len=128;
m=4;
msg1=randint(len,1,m);
msg2=randint(len,1,m);
% figure(1)
% stem(data_source);
% grid on;
% xlabel('data points')
% ylabel('transmitted data phase representation')
% title('Transmitted Data "O"')
WHy i don't get plot representation in my matlab

 채택된 답변

j_solar
j_solar 2012년 2월 27일

0 개 추천

Eliminate the % from all your plotting commands

추가 답변 (2개)

Walter Roberson
Walter Roberson 2012년 2월 27일

1 개 추천

All of your plotting commands are commented out.

댓글 수: 2

Janet
Janet 2012년 2월 27일
i don't get what u say
Walter Roberson
Walter Roberson 2012년 2월 27일
% is the character that indicates that everything to the end of the line is to be treated as a comment. Nearly all of your lines were commented out, turned in to in-active text for the programmer's reading pleasure rather than something the computer is intended to execute.

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

zozo
zozo 2012년 2월 27일

0 개 추천

what is 'data source'?
stem(msg1);
stem(msg2);

댓글 수: 1

Janet
Janet 2012년 2월 27일
I changed...but still i don't get...i am not getting error
But i don't get plot...when i try in other pc's, i get...should i change any settings?

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

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2012년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by