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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
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 pruebamatriz (k) | |
function [ ] = CorrerProyecto() | |
%************************************************* | |
%Matriz 4x4 numeros del 0 al 15 | |
%************************************************* | |
if (k==1) | |
for j= 1 : 4 %columnas |
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
%para derivar | |
/wolfram derivare x^2 | |
%Resolver una integral definida | |
/wolfram integrate sin(cos x) from x=0 to 1 | |
%convercion decimal binario | |
/wolfram 210 to binary | |
%para graficar, solo debemos escribir la ecuacion |
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
%Creado por:Ronal Forero | |
%Programa del metodo de Biseccion | |
clc, clear %limpiamos pantalla, limpiamos workspace | |
fprintf('\n Nota:Ingrese el plinomio como un vector. \n') | |
fprintf('\n Ejemplo: x^3 + 4x^2 + 7x + 9 => [1 4 7 9] \n') | |
pol=input('\nIngrese el polinimoio:'); | |
tol=input('\nIngrese la Tolerancia permitida:'); | |
a=input('\n Ingrese el punto "a" del intervalo [a,b]:'); |
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
%Creado por Ronal Forero | |
%Programa del metodo de Newton Raphson | |
clc, clear %limpiamos pantalla, limpiamos workspace | |
fprintf('\n Nota:Ingrese el plinomio como un vector. \n') | |
fprintf('\n Ejemplo: x^3 + 4x^2 + 7x + 9 => [1 4 7 9] \n') | |
pol=input('\nIngrese el polinimoio:'); | |
size=size(pol); | |
tamano=size(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
import RPI.GPIO as GPIO | |
import time | |
#definimos la funcion blind | |
def blink(pin): | |
GPIO.output(pin,GPIO.HIGH) | |
time.sleep(1) | |
GPIO.output(pin,GPIO.LOW) | |
time.sleep(1) | |
return | |
#Para usar los pines de la tarjeta Raspberry |
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
% Typiar el comando gude y crear un objeto uitable, luego se puede crear un boton que guarde la data | |
% hacemos click derecho al boton y le damos click en callback | |
%el comando get para obtener lo que tiene el objeto | |
ObtenerDatos=get(handles.uitable1,'data'); | |
%para conocer la dimencion de la Matriz usamos size | |
n=size(ObtenerDatos,1); | |
% Creamos un archivo.dat con permisos de escritura 'w' | |
archivo=fopen('datos.dat','W'); | |
%llenamos la matriz usando un For |
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
%definimos los limites | |
menor=550; | |
mayor=680; | |
%creamos un vector usando el comando rand | |
%rand(1,5); crea un vetor con 5 columnas y 1 fila | |
vector = menor + (mayor-menor).*rand(1,5); | |
%el vector creado esta desordenado, lo arreglamos ascendente | |
Vector= sort(vector); | |
%necesitamos el vector como columna | |
H1=Vector' |
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
%Graficar una funcion de Transferencia con tiempo muerto | |
%definimos la funcion de transferencia | |
funcion=tf([12],[1 +1]) | |
% hicimos que el numerador (ganancia)=12 | |
%y el denominador sea S+1, lo que se coloca son los coeficientes | |
%ingresamos el tiempo muerto, en este caso 0.5 | |
funcion.OutputDelay=0.5 | |
%graficamos la funcion de transferencia con el tiempo muerto | |
step(funcion) |
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
%Se tiene un vector llamado VECTOR y guardaremos en diferentes variables cada uno de sus campos | |
VECTOR = ['America';'Europa';'Asia']; | |
variable1=vector(1,:), % Asignanamos 'America' a variable1 | |
variable2=vector(2,:), % Asignanamos 'Europa' a variable2 | |
variable3=vector(3,:), % Asignanamos 'Asia' a variable3 |