MATLAB Answers

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

1 view (last 30 days)
akhila k
akhila k on 3 Jul 2018
Edited: jonas on 5 Jul 2018
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

jonas
jonas on 3 Jul 2018
The fitting app should give you the fitted coefficeints. Use them to plot the curve together with your data.
akhila k
akhila k on 5 Jul 2018
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?

Sign in to comment.

Answers (0)


Translated by