MATLAB: Creat Signal in Simulink


I have a signal that i have saved in my workspace with the name is Matlab.mat This is my result of the previous simulation.
Now,I want to use this file to creat a signal for another simulation. How can i do it? If you have another methods to creat this signal? please help me!
Thanks with best regard!
Pham Van Dung

Best Answer

    1. your file matlab.m must contains the time t and the signal y (for example)
    2. i don't know how you saved your signal
    3. if your signal y and time t are 1xn array
    save matlab ty
    % then in simulink, from sources, use "from file" and set the name of your file "matlab"