Combining a plot obtained from 'plot' command an the one that I have got using curve fitting app

I have plotted a few spectrums by exporting it from Microsoft Excel using 'xlsread' and then plotting it using 'plot' function on matlab. I have got another plot using curve fitting app. Is there a way to combine both of them into one single plot? If yes, can someone tell me the method to do or specify some code. Version: MATLAB R2015a

3 Comments

The fitting app should give you the fitted coefficeints. Use them to plot the curve together with your data.
I did get the fitted coefficients. But how can i combine both of them. I generated the code of the fitted graph and included in it my existing .m file. But it's showing an error. Is there any other procedure?
What is the expression that you have fitted? You have any code?

Sign in to comment.

Answers (0)

Categories

Products

Release

R2015a

Asked:

on 3 Jul 2018

Edited:

on 5 Jul 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!