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 Fila(list) { | |
| this.list = list | |
| this.add = elem => { | |
| this.list.push(elem) | |
| return this.list | |
| } | |
| this.remove = () => { | |
| this.list.shift() |
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; | |
| close all; | |
| clc; | |
| fs=1000; Ts=1/fs; | |
| f1=20; | |
| DigFreq1=2*pi*f1/fs; | |
| f2=30; | |
| DigFreq2=2*pi*f2/fs; |
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
| %Deve-se digitar na janela de comandos para funcionar: pkg load signal | |
| clear all; | |
| close all; | |
| clc; | |
| fs=1000; Ts=1/fs; | |
| f1=20; | |
| DigFreq1=2*pi*f1/fs; | |
| f2=30; |
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; | |
| close all; | |
| clc; | |
| [Y,fs]=audioread('sine1.wav'); | |
| figure(1), port(Y); | |
| Yd = fft(Y); | |
| X_mag = abs(Yd); | |
| N = length(Y); |
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
| close all, | |
| close all, | |
| clc | |
| %Leitura da Imagem | |
| imgg = imread ('lena_color.png'); | |
| %Transformar a imagem de RGB para a escala de cinza | |
| img = rgb2gray(imgg); | |
| %Transforma a imagem em double |
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
| close all, | |
| close all, | |
| clc | |
| %Leitura da Imagem | |
| imgg = imread ('lena_color.png'); | |
| %Transformar a imagem de RGB para a escala de cinza | |
| img = rgb2gray(imgg); | |
| %Transforma a imagem em double |
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
| const Fila = require('./Fila') // Importação de um algoritmo Fila | |
| // Representação do grafo em Lista de Adjacência | |
| // Exemplo de representação do grafo para o bom funcionamento do algoritmo | |
| /* | |
| * Os pares de valores contidos em ListaAdjacencia[i][j] | |
| * representam o vertice de adjacência e o custo da aresta, | |
| * simultaneamente | |
| */ |
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
| close all, | |
| clear all, | |
| clc | |
| %Leitura da Imagem | |
| imgg = imread ('lenna.png'); | |
| %Transformar a imagem de RGB para a escala de cinza | |
| img = rgb2gray(imgg); | |
| %Transforma a imagem em double |
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
| close all, | |
| clear all, | |
| clc | |
| %Leitura da Imagem | |
| imgg = imread ('lenna.png'); | |
| %Transformar a imagem de RGB para a escala de cinza | |
| img = rgb2gray(imgg); | |
| %Transforma a imagem em double |
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
| close all, | |
| clear all, | |
| clc | |
| %Leitura da Imagem | |
| imgg = imread ('lenna.png'); | |
| %Transformar a imagem de RGB para a escala de cinza | |
| img = rgb2gray(imgg); | |
| %Transforma a imagem em double |