Difference between revisions of "Applets:Periodendauer periodischer Signale"

From LNTwww
Line 143: Line 143:
 
         return n % 1 === 0;
 
         return n % 1 === 0;
 
     }
 
     }
 
xaxis1 = plotBox.create('axis', [[0, 0], [1,0]], {name:'\\[t/T\\]', withLabel:true, label:{position:'rt', offset:[-25, 15]}});
 
yaxis1 = plotBox.create('axis', [[0, 0], [0, 1]], {name:'\\[x(t)\\]', withLabel:true, label:{position:'rt', offset:[10, -5]}});
 
  
 
//Definition der Funktion zum An- und Ausschalten des Koordinatengitters
 
//Definition der Funktion zum An- und Ausschalten des Koordinatengitters
 
function showgrid() {
 
function showgrid() {
 
     if (gridbox.checked) {
 
     if (gridbox.checked) {
       xaxis1 = plotBox.create('axis', [[0, 0], [1,0]], {});
+
       xaxis = plotBox.create('axis', [[0, 0], [1,0]], {});
       yaxis1 = plotBox.create('axis', [[0, 0], [0, 1]], {});
+
       yaxis = plotBox.create('axis', [[0, 0], [0, 1]], {});
 
     } else {
 
     } else {
     xaxis1.removeTicks(xaxis1.defaultTicks);
+
     xaxis.removeTicks(xaxis.defaultTicks);
     yaxis1.removeTicks(yaxis1.defaultTicks);
+
     yaxis.removeTicks(yaxis.defaultTicks);
 
     }
 
     }
 
     plotBox.fullUpdate();
 
     plotBox.fullUpdate();

Revision as of 08:01, 15 September 2017

Funktion: $$x(t) = A_1\cdot cos\Big(2\pi f_1\cdot t- \frac{2\pi}{360}\cdot \phi_1\Big)+A_2\cdot cos\Big(2\pi f_2\cdot t- \frac{2\pi}{360}\cdot \phi_2\Big)$$