Hi,
I'm trying to find the average values inside a matrix, [N 1]. I'm using N simulations and for each simulation I get a value. What I want to do is to find the average value of G after each simulation of N and sample these results in a new matrix.
My script:
clc; clear all; close all;N = 10;x = 5;G = zeros(N,1);for i = 1:N; j = i*x; G(i) = j; end
Best regards
Trond Oesten
Best Answer