<jupyter_start><jupyter_text>25.10 Discrete SinalTo Start: 1. Admin start anaconda in terminal2. `jupyter notebook`3. Connect VSCode to external jupyter server<jupyter_code>#%% Import libs
import math as ma
import numpy as np
import matplotlib.pyplot as plt

#%% Define variables
fs = 20
dt = 1/fs
N  = 64
k  = np.arange(0, N)
t  = k * dt
f_signal = 2

#%% Signal generation
s = np.cos(2 * ma.pi * f_signal * t)

#%% Plot Signal
plt.subplot(212)
plt.plot(k, s, "k*-")
plt.xlabel("Time index k")
plt.ylabel("s(k)")
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13898916967509026, 'fraction_numerical': 0.032490974729241874, 'mean_word_length': 4.4950495049504955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '622305', 'license': 'MIT', 'n_tokens_mistral': 245, 'n_tokens_neox': 227, 'n_words': 66, 'path': 'sonstiges/DSP_Python_Matlab/25.10 Discrete Signal.ipynb', 'repo_name': 'thieleju/studium', 'size': '554'}