Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
plotting log scale

Subject: plotting log scale

From: Faraz Afzal

Date: 12 Jul, 2010 11:22:04

Message: 1 of 3

Hi,
I have a plot from cfit with the extension *.cfit..

Actually this is the only file I have and nothing else..

I can view the plot in curve fitting tool box.. I saw the axes are linearly set and I wanted to change both axes x and y into LOG LOG..

 I used the fitting button and save to workspace function where I have got output,fittedmodel,and goodness stuff in my workspace now..

I am unable to recover plot data for the fittedmodel1 and plot them on log log scale..

any ideas?

Subject: plotting log scale

From: Steven Lord

Date: 12 Jul, 2010 13:28:06

Message: 2 of 3


"Faraz Afzal" <farazafzal@gmail.com> wrote in message
news:i1etss$h40$1@fred.mathworks.com...
> Hi, I have a plot from cfit with the extension *.cfit..
>
> Actually this is the only file I have and nothing else..
>
> I can view the plot in curve fitting tool box.. I saw the axes are
> linearly set and I wanted to change both axes x and y into LOG LOG..
>
> I used the fitting button and save to workspace function where I have got
> output,fittedmodel,and goodness stuff in my workspace now..
>
> I am unable to recover plot data for the fittedmodel1 and plot them on log
> log scale..
> any ideas?

Import the session into the Curve Fitting Toolbox GUI CFTOOL then save the
information you want to the workspace using File -> Open Session (I believe
that's the menu item; if not look for an item whose name is "Open" or "Load"
or "Import" followed by Session.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: plotting log scale

From: Faraz Afzal

Date: 12 Jul, 2010 13:51:05

Message: 3 of 3

"Steven Lord" <slord@mathworks.com> wrote in message <i1f596$dgc$1@fred.mathworks.com>...
>
> "Faraz Afzal" <farazafzal@gmail.com> wrote in message
> news:i1etss$h40$1@fred.mathworks.com...
> > Hi, I have a plot from cfit with the extension *.cfit..
> >
> > Actually this is the only file I have and nothing else..
> >
> > I can view the plot in curve fitting tool box.. I saw the axes are
> > linearly set and I wanted to change both axes x and y into LOG LOG..
> >
> > I used the fitting button and save to workspace function where I have got
> > output,fittedmodel,and goodness stuff in my workspace now..
> >
> > I am unable to recover plot data for the fittedmodel1 and plot them on log
> > log scale..
> > any ideas?
>
> Import the session into the Curve Fitting Toolbox GUI CFTOOL then save the
> information you want to the workspace using File -> Open Session (I believe
> that's the menu item; if not look for an item whose name is "Open" or "Load"
> or "Import" followed by Session.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
>


Thanks Steve,

Actually I figured it out already. From your suggestion it seems I must have put on the wrong question. Actually the session came in front of me already in *.cfit file and I did that loading session stuff. After that I wanted to put that linear scale to log scale which i did by this way..

clicking 'fitting' would let me save the data in workspace. Then i can plot using plot(fittedmodel1)..
Lastly I would tweak the X and Yscale using
set(gca,'XScale','log') and same for Y..
Thats all I wanted..

Thanks for your help.

Regards,
Muhammad Faraz

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us