# Nonnegative matrix and tensor factorization (nmf, ntf) with any beta divergence in matlab

The following Matlab project contains the source code and Matlab examples used for nonnegative matrix and tensor factorization (nmf, ntf) with any beta divergence.
function [W,H,Q, Vhat] = betaNTF(V,K,varargin)
%------------------------------------------------------------------
% simple beta-NTF implementation
%
% Decomposes a tensor V of dimension FxTxI into a NTF model :
% V(f,t,i) = \sum_k W(f,k)H(t,k)Q(i,k)
%
% by minimizing a beta-divergence as a cost-functions.