 Patients with myocardial infarction, heart failure and patients planned for primary prophylactic ICD. Echocardiography is performed at inclusion. Comparism of the ability of left ventricular ejection fraction, global strain and mechanical dispersion to predict clinical outcome in patients with these conditions. 