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
%% Clean | |
clear GeomTest; | |
clc; | |
clf | |
cla | |
%% | |
h2 = figure(); | |
ax1 = axes(h2); |
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 "mex.h" | |
void | |
mexFunction (int nlhs, mxArray *plhs[], | |
int nrhs, const mxArray *prhs[]) | |
{ | |
mexPrintf ("Hello, World!\n"); | |
mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs); | |
} |
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 [] = tictactoe() | |
% Setup the figure/windows for the game | |
close all | |
figure('Name','Tic Tac Toe'); | |
plot(-1. -1) | |
axis([0 3 0 3]) | |
set(gca,'xTick',0:3) | |
set(gca,'yTick',0:3) | |
set(gca,'xTickLabel','') | |
set(gca,'yTickLabel','') |
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
name = "Histogram of US" | |
extn = ".jpeg" | |
name = paste(name,extn) | |
jpeg(name) | |
par(mfrow=c(3, 1)) | |
for (i in c(1,3)) { | |
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 processing.serial.*; | |
Serial mySerial; | |
PrintWriter output; | |
void setup() { | |
mySerial = new Serial( this, Serial.list()[1], 9600 ); | |
println(Serial.list()); | |
output = createWriter( "data.txt" ); | |
} |
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 <Adafruit_Sensor.h> | |
// Example testing sketch for various DHT humidity/temperature sensors | |
// Written by ladyada, public domain | |
#include "DHT.h" | |
#define DHTPIN 8 // what digital pin we're connected to | |
// Uncomment whatever type you're using! |
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
""" | |
Humidity and Temperature data logging script. | |
For ANLY 510 class | |
Anurag Kotha | |
Based on below sketch. | |
Temperature/Humidity Light monitor using Raspberry Pi, DHT11, and photosensor | |
Data is displayed at thingspeak.com | |
2015/06/15 | |
SolderingSunday.com |
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
ind = [1,2,4,5,8,9,16,17,18,19,20]; | |
AllData.TextscanFormats(ind) = {'%C'}; | |
dTemp.TextscanFormats(ind) = {'%C'}; |
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
h=figure;histogram(gather(Data.CreatedOn)); | |
saveas(h,'CreatedOn_AllData.fig'); | |
h=figure;histogram(gather(Data.FileTime)); | |
saveas(h,'FileTime_AllData.fig'); | |
Iterm = Data.TerminalCode == 1004; | |
D = gather(Data(Iterm,:)); | |
D = D(D.ProductCode == 24,:); |
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
clearvars; | |
DataPath = 'C:\*.csv'; | |
PDataPath = 'C:\PData'; | |
%% | |
AllData = datastore(DataPath,'TreatAsMissing','NA'); | |
OlderNewer