{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Chapter 3: Linear Systems" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 3.1: Energy_of_a_signal.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "// Energy of a signal\n", "// 3.1\n", "\n", "u = [4 5 6];\n", "Eu = norm(u)^2;\n", "ruu = xcorr(u);\n", "Lu = length(ruu);\n", "Eu = ruu(ceil(Lu/2));" ] } , { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 3.2: Convolution_of_two_sequences.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "// Convolution of two sequences\n", "// 3.2\n", "\n", "h = [1 2 3];\n", "u = [4 5 6];\n", "y = convol(u,h)\n", "" ] } ], "metadata": { "kernelspec": { "display_name": "Scilab", "language": "scilab", "name": "scilab" }, "language_info": { "file_extension": ".sce", "help_links": [ { "text": "MetaKernel Magics", "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" } ], "mimetype": "text/x-octave", "name": "scilab", "version": "0.7.1" } }, "nbformat": 4, "nbformat_minor": 0 }