Code covered by the MathWorks Limited License

Highlights from
Embedded Coder Robot NXT Demo

image thumbnail

Embedded Coder Robot NXT Demo

by

 

15 Dec 2006 (Updated )

Offers an enjoyable Model-Based Design experience using Simulink models with Lego robots

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

SoundList.m
%   Copyright 2010 The MathWorks, Inc.

% Sound  1   2   3   4   5   6    7    8    9
% B      62 123 247 494 988 1976 3951 7902
% A#     58 117 233 466 932 1865 3729 7458
% A      55 110 220 440 880 1760 3520 7040 14080
% G#     52 104 208 415 831 1661 3322 6644 13288
% G      49  98 196 392 784 1568 3136 6272 12544
% F#     46  92 185 370 740 1480 2960 5920 11840
% F      44  87 175 349 698 1397 2794 5588 11176
% E      41  82 165 330 659 1319 2637 5274 10548
% D#     39  78 156 311 622 1245 2489 4978 9956
% D      37  73 147 294 587 1175 2349 4699 9398
% C#     35  69 139 277 554 1109 2217 4435 8870
% C      33  65 131 262 523 1047 2093 4186 8372
% Note: Frequency is audible from about 31 to 2100 Hertz.
frequency = ...
    uint16([131   147   165  175   196   220   247  262;
            262   294   330  349   392   440   494  523;
            523   587   659  698   784   880   988 1047;
           1047  1175  1319 1397  1568  1760  2093 2093]);

Contact us