Comments on: Age is No Barrier to Exploring Ideas and Concepts in MATLAB and Simulink https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/?s_tid=feedtopost Loren Shure is interested in the design of the MATLAB language. She is an application engineer and writes here about MATLAB programming and related topics. Wed, 01 Oct 2014 11:10:16 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Graham https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/#comment-44378 Wed, 01 Oct 2014 11:10:16 +0000 https://blogs.mathworks.com/loren/?p=974#comment-44378 Hi Doug,

We used a MATLAB function block that was driven by a ‘compare to constant’ block. When a threshold was reached, a logical 1 is sent to the MATLAB function which then generates the sound. The code for MATLAB function is,

function fcn(u1)

%#codegen

coder.extrinsic(‘sound’);

y = load(‘gong.mat’);

if u1 > 0.5

sound(y.y)

end

Hope this works. Let me know how it goes!

]]>
By: Doug https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/#comment-44373 Tue, 30 Sep 2014 02:38:27 +0000 https://blogs.mathworks.com/loren/?p=974#comment-44373 I decided to try this experiment with my 8 year old…but I can’t figure out how you triggered a sound. The “From Multimedia File” block doesn’t contain a trigger input. The article mentions using a Matlab callback…but which callback on which block? I am strong in Matlab, but not Simulink, so I’m struggling with something that’s probably simple.

]]>
By: Muthu https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/#comment-44154 Tue, 02 Sep 2014 18:52:25 +0000 https://blogs.mathworks.com/loren/?p=974#comment-44154 Very nice! Inspiring for all kids out there :-)

]]>
By: Graham https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/#comment-44086 Tue, 26 Aug 2014 13:55:59 +0000 https://blogs.mathworks.com/loren/?p=974#comment-44086 She did indeed, and we now leave the door open for her.

]]>
By: Chris https://blogs.mathworks.com/loren/2014/08/25/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink/#comment-44085 Tue, 26 Aug 2014 13:27:23 +0000 https://blogs.mathworks.com/loren/?p=974#comment-44085 Did the dog ever get in?

]]>