This file contains hidden or 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 all; | |
| clc; | |
| %% Parameters | |
| cvx_expert true; | |
| a = 3; | |
| J = 5; | |
| c1 = 1; | |
| c2 = 2; | |
| y = 2; |
This file contains hidden or 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 output = parseBrainAmpFile(filename) | |
| %parseBrainAmpFile Read in and parse a BrainAmp File | |
| % | |
| % parseBrainAmpFile(filename) will read in the specified file | |
| % which was exported from the brainamp | |
| % | |
| % output is struct containing two members: | |
| % names - a matrix where each row is the name of the data row | |
| % values - a [#names * #samples] matrix containing the data |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 [approx, error] = taylor_approx(func, point, order, range_offset) | |
| %taylor_approx Construct, return and plot the taylor series approx. | |
| % | |
| % taylor_approx(func, point, order, range_offset) will construct the | |
| % taylor series approx of the string in func to the specified order | |
| % evaluated at some range offset centered around point. | |
| % | |
| % approx is the symbolic approximation | |
| % | |
| % error is the error values in the range |
This file contains hidden or 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 color_average(image,diameter,type,thresh) | |
| %% image is the name of the file 'image.format' | |
| %% diameter is the cell size | |
| %% type: either 'circle' or 'square' | |
| %% thresh: from 0 to 1. Size of the gap between cells | |
| [colormat,~,~] = imread(image); | |
| [x,y,z] = size(colormat); | |
| rows = floor(x/diameter); |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00 |
This file contains hidden or 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
| %% A imple Least Squares problem | |
| % https://en.wikipedia.org/wiki/Least_squares | |
| % We first consider the most basic convex optimization problem, least-squares | |
| % (also known as linear regression). In a least-squares problem, we seek | |
| % x \in R^n that minimizes norm(Ax?b) | |
| % Setup parameters | |
| n = 100; | |
| A = randn(2*n,n); |
This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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
| license: gpl-3.0 |
OlderNewer