feat: add 2.2.b data

This commit is contained in:
2025-10-21 23:46:45 -04:00
parent 6d715a1aba
commit be25c4658c
4 changed files with 5900 additions and 0 deletions

1959
data/2_2_b/y1.csv Normal file

File diff suppressed because it is too large Load Diff

1959
data/2_2_b/y1_y2_sum.csv Normal file

File diff suppressed because it is too large Load Diff

1959
data/2_2_b/y2.csv Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -265,3 +265,26 @@ def run_2_2_a_conv_pred():
plot_single_sinusoid_freq(5)
plot_single_sinusoid_freq(10)
plot_single_sinusoid_freq(100)
def run_2_2_b_show():
plt.figure(num='Window')
plt.xlabel('t (s)')
plt.title(f'Sum of sinusoids')
plt.ylabel('V')
plt.grid(True)
t2, x2, y2 = load_scope_data('/home/hurricos/Sync/org/School/EE3150/LAB3/data/2_2_b/y1.csv')
plt.plot(t2, x2, label=r'v_in1')
plt.plot(t2, y2, label=r'v_c21')
t2, x2, y2 = load_scope_data('/home/hurricos/Sync/org/School/EE3150/LAB3/data/2_2_b/y2.csv')
plt.plot(t2, x2, label=r'v_in2')
plt.plot(t2, y2, label=r'v_c22')
t2, x2, y2 = load_scope_data('/home/hurricos/Sync/org/School/EE3150/LAB3/data/2_2_b/y1_y2_sum.csv')
plt.plot(t2, x2, label=r'v_in')
plt.plot(t2, y2, label=r'v_c2')
plt.legend()
plt.show()
run_2_2_b_show()