Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Plot functions with MATLAB

Status
Not open for further replies.

mazdak

Junior Member level 3
Joined
Jun 21, 2010
Messages
26
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Activity points
1,499
Hi,
how can I plot a function with fplot command while the x axis is semi-logarithmic, i mean the distance between 1 and 10 on the x axis equals to distance between 10 and 100. the semilogx command plots that way but it won't accept functions.
any ideas?
 

I don't know how to modify x axis in fplot.

I think the simplest way is to use semilogx function. Because semilogx doesn't accept function, we must set input variable and call the function manually before using semilogx.
 

Hi,
how can I plot a function with fplot command while the x axis is semi-logarithmic, i mean the distance between 1 and 10 on the x axis equals to distance between 10 and 100. the semilogx command plots that way but it won't accept functions.
any ideas?

You have to edit "fplot" function then,
change the instruction plot(xx,y,marker,'parent',cax) to semilogx(xx,y,marker,'parent',cax)
that's all
 
  • Like
Reactions: mazdak

    mazdak

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top