Hello Muhammad,
I think that what you are referring to is a dynamic link between MATLAB and Excel. And for this query I found a matching MATLAB Answer post. Please see if it helps with your question.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!