How can I make a 3d
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone, I have had problems when making a 3d plot for different rectangular pulses, in the 'y' axis the amplitude should go in voltage, in the 'x' axis the time, finally in the z axis the samples. I have searched for information but have not been able to find a good source.
댓글 수: 0
답변 (1개)
Star Strider
2022년 6월 25일
댓글 수: 9
Star Strider
2022년 6월 26일
That demonstration code is not appropriate for your data.
Use this instead:
Timem = cat(2,Time1,Time2,Time3,Time4); % Concatenate To Matrix
Voltajem = cat(2, Voltaje1,Voltaje2,Voltaje3,Voltaje4); % Concatenate To Matrix
figure
hold on
for k = 1:size(s,1)
plot3(Timem(:,k), ones(size(Timem,1))*k, Voltajem(:,k))
end
hold off
grid on
xlabel('Time (ns)')
ylabel('Sample')
zlabel('Ampliitude (a.u.)')
view(50,50)
.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!