-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: TimoLass <172315704+TimoLass@users.noreply.github.com>
- Loading branch information
1 parent
ee54163
commit 403ce26
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
%Code von Timotheus Lass für und mit Darius Peters | ||
t=0:0.0001:6.5*pi; %Zeitvektor t | ||
f1=5; %Frequenz 1 | ||
f2=5.2; %Frquenz 2 | ||
%Signal und Plot schwarze Kurve | ||
y1=cos(2*pi*((f1-f2)/2)*t); | ||
p1=plot(t,y1,'Color',[0 0 0],'LineWidth',1.2); | ||
hold on | ||
%Achsenbeschriftung und -bearbeitung | ||
xlabel('t'); | ||
ylabel('y(t)'); | ||
ax=gca; | ||
xticks(-1000); | ||
yticks(-1000); | ||
ax.XAxisLocation='origin'; | ||
%annotation('arrow',[0.1, 0.9],[0.515, 0.515]); | ||
xlim([0 6.5*pi]); | ||
ylim([-2 2]); | ||
%Signal und Plot rote Kurve | ||
y2=-cos(2*pi*((f1-f2)/2)*t); | ||
p2=plot(t,y2,'r','LineWidth',1.2); | ||
%Signal und Plot blaue Kurve | ||
y3=cos(2*pi*((f1-f2)/2)*t).*sin(2*pi*((f1+f2)/6)*t); | ||
p3=plot(t,y3,'b'); | ||
legend('Hüllkurve','Hüllkurve','Ton'); | ||
exportgraphics(gcf, 'schwebung_neu.png', 'ContentType', 'image', 'Resolution', 600); | ||
hold off; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.