Sunday, August 2, 2015

Mtable using matlab

function [mt , s] = mtable( n , m)
mt = zeros(n,m);
for c = 1 : m
    for r = 1 : n
        mt(r,c) = c*r;
    end
end
s = sum(sum(mt));
end

No comments:

Post a Comment

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...