more realistic matlab stub