Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- How to produce a log based range variable or plot ...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
02:43 PM

11-08-2017
02:43 PM

Hello,

I am working on a project, but can not find a way to produce a decent log plot over a large range. The issue is that if I use the log function under plots with a range variable for my x values there will be too few data points on the low end of the plot to look smooth. So I tried making a log-based x set of data using a range variable converted to a power based set of vector data, variable d, but the when plotting it says can not divide by zero. Though after multiple checks, I do not believe my d values ever goes to zero. I just need to be able to make a plot of y vs log(x) able to span a range of 10^-10 to 10^-3 meters and have sufficient data points for the small x values.

Also getting this error now for the second attempt, Plotting failed. Replace complex values and NaNs by real numbers.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
03:48 PM

5 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
03:34 PM

11-08-2017
03:34 PM

Re: How to produce a log based range variable or plot equation with vector as independent variable?

I usually create a range variable, i := 3, 3.3 . .8

then plot 10^i

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
03:48 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
03:49 PM

11-08-2017
03:49 PM

Re: How to produce a log based range variable or plot equation with vector as independent variable?

Ok, will try this.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
04:07 PM

11-08-2017
04:07 PM

Re: How to produce a log based range variable or plot equation with vector as independent variable?

Is there a way to add units. Can not seem to get units into the logspace values? If I put them in just ignores them on the output.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-08-2017
04:08 PM

11-08-2017
04:08 PM

Re: How to produce a log based range variable or plot equation with vector as independent variable?

Oh, putting it on the outside of the parentheses works. Thanks again!

Top Tags