feat: add 2.2.b data
This commit is contained in:
1959
data/2_2_b/y1.csv
Normal file
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
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
1959
data/2_2_b/y2.csv
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user