File Exchange

image thumbnail

Birthday Cake

version (512 KB) by Amol Mahurkar
This code bakes a birthday cake for someone special to whom you wanna surprise on his/her birthday


Updated 25 Apr 2013

View Version History

View License

Steps to be followed:

1. Extract .rar file Birthday_gift and run Birthday_gift.m

2. Change folder when asked to while running (dot)m file

3. Read instructions carefully

% This code bakes a birthday cake for someone special to whom you
% wanna surprise on his/her birthday with a cake in MATLAB ;)
% This is a chocolate flavored cake decorated with cheries on top ......
% yyuummmyy :) :)
% Lighted birthday candle has been put up on cake; Think of a wish and blow
% off candle by clicking on flame (yellowish in colour)... and here comes
% the celebration with birthday song.. :) :) .. Wish you a very very happy
% birthday..
% While running code, make sure that PC speakers are ON
% Cake prepared by Amol G. Mahurkar
% Birthday_gift.m Revisions
% Version 1.2 04/25/2013
% Version 1.1 12/19/2011
% Version 1.0 10/28/2011
% Please suggest some extra features you think should be in this birthday gift

NB: It is recommended to run this code on PC having resolution of atleast 1024x768 and keep PC speakers ON

Cite As

Amol Mahurkar (2021). Birthday Cake (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Herren Thomas D'Souza

Error in Birthday_gift>figureset (line 145)

Error in Birthday_gift (line 105)
[figure1, axes1] = figureset();


ziad alalaily

Error using matlab.ui.Figure/set
There is no ActivePositionProperty property on the Figure class.

Error in Birthday_gift>figureset (line 146)

Error in Birthday_gift (line 105)
[figure1, axes1] = figureset();

Ali Osman

funny program :)

Amol Mahurkar

@Loknadh Ch : I don't find any error in my code. How are you exactly getting that error? And by the way, it can't give you such an error message unless you mess up with code. Because, my code doesn't have any line,

Please check again. And make sure you read instructions.

Loknadh Ch

Getting Error Like following..!

??? Error using ==> happybirthday>cake_w_flame
Too many input arguments.

Error in ==> happybirthday at 81

??? Error: File: Birthday_gift.m Line: 147 Column: 77
Unexpected MATLAB operator.

Dai Zhang


MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!