How to plot repeated sequence in a file using stem3 command?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I want to extract repeated channel response measurement from a file using loop and I want to plot using stem3 function. Can you please help with minimal working example. I shall be grateful.
Regards,
Mir
댓글 수: 0
답변 (1개)
Ankit Dutta
2019년 3월 15일
It is my understanding that you are trying to plot a “stem3” graph using data from a file that has multiple sequences of data. If this is the needed requirement, you may read the data into a variable, and then use it to plot a “stem3” graph. Additionally, you can then use the “hold on” command to plot each entry using a loop as per your use case on to the same plot.
Please feel free to refer to the documentation page linked below.
Here is a sample code for your reference.
x = randi(9, 2, 5); % Create Data
y = randi(9, 2, 5); % Create Data
z = randi(9, 2, 5); % Create Data
axis([0 10 0 10 0 10]) % The ‘axis’ Call Must Be Placed Here
figure(1)
hold on
for i=1:2
stem3(x(i,:), y(i,:), z(i,:))
end
hold off
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!