Skip to content

Instantly share code, notes, and snippets.

View yumenokanade's full-sized avatar

chino yumenokanade

View GitHub Profile
# -*- 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
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);
%計測制御プログラミング第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;
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)