File Exchange

image thumbnail

Birthday Cake

version (106 KB) by Ligong Han
Draw a birthday cake with candles and best wishes.


Updated 10 Jan 2015

View License

The function draws a birthday cake with candles and your best wishes. The input arguments, "name_cell" and "words" are both cell data. You can seperate the persons first name and last name into different strings and put them into one cell, e.g. {'Martin','Luther','King'}.

Cite As

Ligong Han (2020). Birthday Cake (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

I feel like I'm either missing something or the code is, but when I try to run it as a test without changing anything I get "Not enough input arguments." Then when I change the HappyBirthday(name_cell,n_age,words) at the very beginning to include my inputs within the parenthesis I constantly get "Error: File: HappyBirthday.m Line: 1 Column: 24 Unexpected MATLAB expression." I'm not quite sure how this code is supposed to work then, and what specifically I need to do to get it to work.

Line 83 only needs six objects not seven. This breaks releases >= R2014b.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags