Hi
Instead of a digital clock, you can create a MATLAB Function block that generates the desired sine wave at a faster rate which can be programmed by you to sample at your specified rate. Let me illustrate to you on how to implement a sine wave in a MATLAB Function block:
function y = fastSineWave(t)
% Define the frequency and amplitude
frequency = 1; % Hz
amplitude = 1;
% Generate the sine wave
y = amplitude * sin(2 * pi * frequency * t);
end
For more information on matlab function, please refer to
https://www.mathworks.com/help/simulink/slref/matlabfunction.html
Hope this helps. Please let me know if you have any further questions.
