Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is wrong in this Discrete Integration with Galois Fields in Matlab
    primarykey
    data
    text
    <p>I want to implement Discrete Integration with Galois Fields in Matlab where the time step is not constant. Assume that it is this:</p> <p><img src="https://i.stack.imgur.com/5qfbU.png" alt="enter image description here"></p> <h2>My attempt</h2> <pre><code>function [ int ] = integrate_matlab( YDataVector, a, b ) %integrate_matlab Calculate the discrete integral % Discrete Matlab Integration % int_1^N x(t_k) * (b-a)/N, where t_k = a + (b-a) k/N % % YDataVector - Galois vector (255 x 1 gf), this is signal, % which values you can reach by YDataVector.x % % int - returns Galois vector (255 x 1 gf) N = length(YDataVector); for k=1:N tk = a + (b - a) * k/N; int = xtk(YDataVector, k) * (b - a) / N; % How to implement the function xtk(YDataVector)? end </code></pre> <p>and then the function xtk</p> <pre><code>function [ xtk_result ] = xtk( YDataVector, k ) %xkt Summary of this function goes here % YDataVector - Galois vector (255 x 1 gf), this is signal % xtk_result - Galois vector (255 x 1 gf) % k - index, this must be here to be able calculate different xtk for different iterations xtk_result = ; // I do not know what to fill here end </code></pre> <p>I am confused by the mathematical series equation <strong>x(tk)</strong> for <strong>tk</strong>. I know that I am doing now this wrong. The writing <strong>x(tk)</strong> just confuses me, since I think it as a function that takes in the series. I know that it is a signal at some time point, here the <strong>YDataVector</strong>, but how to implement it I have forgotten. I should probably iterate the series first:</p> <pre><code>t_0 = a; t_1 = a + (b - a) * 1/N; </code></pre> <p>This does not seem to help, since <strong>tk</strong> is not defined iteratively.</p> <p><strong>What am I thinking wrong when implementing the series x(tk)?</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload