File Exchange

image thumbnail

Birthday Cake

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

9 Downloads

Updated 25 Apr 2013

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 (2020). Birthday Cake (https://www.mathworks.com/matlabcentral/fileexchange/33507-birthday-cake), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Error in Birthday_gift>figureset (line 145)
oldActivePositionProperty=get(figure1,'ActivePositionProperty');

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

MK

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

Error in Birthday_gift>figureset (line 146)
set(figure1,'Units','Pixels','ActivePositionProperty','outerposition');

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

Ali Osman

funny program :)

@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,
"cake_w_flame(x1,x2,x3,y1,y2,y3,z1,z2,z3,figure1,axes1,1);"

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
cake_w_flame(x1,x2,x3,y1,y2,y3,z1,z2,z3,figure1,axes1,1);

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

Dai Zhang

Ben

Updates

1.3.0.0

A/V sync

1.1.0.0

Just made it more attractive..

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