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
classdef Ep | |
properties (Access = protected, Constant) | |
INFINITE_POINT = -9999; | |
end | |
properties (SetAccess = protected) | |
x | |
y | |
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
classdef ElipticCurve < handle | |
properties (Access = public) | |
a | |
b | |
p | |
end | |
methods (Access = public) |
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
#include <avr/io.h> | |
#include <stdio.h> | |
#include <avr/sleep.h> | |
#include <avr/interrupt.h> | |
#include <math.h> | |
#define F_CPU 20000000UL | |
//#define INTERVAL_TIME 1 //ms | |
#define CENTRAL_FREQ 8 //Hz | |
#define MODULATION_FREQ 1//Hz |
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
% trg: 元のトリガ波形 | |
% ch: 抽出したいチャンネルの番号 | |
% delay: 一度入力を受け取って、次の入力を受け付けるまでのサンプル数 | |
function out = ExtractTrigger(trg, ch, delay) | |
% 最初に出力をすべて0で埋める | |
out = zeros(size(trg)); | |
isTrgGotten = false; | |
delayCount = 0; | |
% 全サンプル点を走査 |
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
import matplotlib.pyplot as plt | |
import mpl_toolkits.mplot3d as Axes3D | |
import matplotlib.animation as anim | |
from matplotlib.animation import PillowWriter | |
import numpy as np | |
from numpy import sin, cos, pi | |
def ExFunc(v): |