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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Nov 27 17:46:48 2014 | |
@ID:J1-13126 | |
""" | |
import numpy as np | |
import matplotlib.pylab as plt | |
import scipy as sc |
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
clear;clc; close all; | |
f = [1 -1 2 -2]; %x^3 - x^2 + 2*x -2 | |
esp = 0.0000001; | |
%初期近似 | |
x0 =1; | |
x1 =2; | |
x2 =3; | |
for j=1:3 | |
f0=give(f,x0); |
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
%計測制御プログラミング第2回 | |
%2014/9/30 | |
%(演習1) | |
A = [4 1 2 ; 1 2 3; 2 1 1]; | |
x = [2 3 1]; | |
A*x' | |
%(演習2) | |
figure(2) | |
X = -10:10; |
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
clear; close all | |
x= [0 2 3 1]; | |
N = 4 | |
X = fft(x) | |
%Y = ifft(X) | |
Y = X/N | |
%[N dummy]=size(y); | |
Fs = 1 | |
figure(1) |