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
close all; | |
clear all; | |
% feed positive current and check plots of v,m,h,n | |
[t , r] = ode15s(@hh,[0 10],[-60 0.052932 0.596121 0.317677]); | |
figure | |
subplot(2,1,1) | |
plot(t,r(:,1)); | |
title('hogkin huxley') | |
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
function abc | |
[x,y] = meshgrid(linspace(0,100), linspace(0,100)); | |
dx_dt = cos(x); | |
dy_dt = 1 + sin(x); | |
figure(1) | |
quiver(x,y, dx_dt, dy_dt, 1, 'color',[0 0 0]); | |
grid | |
figure(2) |
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
# Credits - Mukul | |
import os | |
import csv | |
import time | |
from selenium import webdriver | |
baseURL = "SOME URL" | |
driver = webdriver.Chrome() |
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 numpy as np | |
from scipy.interpolate import interp1d | |
from matplotlib.patches import Ellipse | |
x = np.array([0.9,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8]) | |
y = np.array([8,7.2,6,5.5,5,5.2,7.2,9,11.2,12]) | |
x1 = np.array([0.8,0.9,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1]) | |
y1 = np.array([9.5,9.2,9,7.5,4,2,0,2,4.2,5,7,9,10,12]) |
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
# We are going to search through this list of dictionaries | |
list_of_dicts = [ | |
{ | |
"name": "Usual Suspects", | |
"imdb": '7.0', | |
"category": "Thriller" | |
}, | |
{ | |
"name": "Hitman", | |
"imdb": '6.3', |