Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:41:16+00:00 2026-05-27T00:41:16+00:00

I would like to plot the shifted logistic function as shown from Wolfram Alpha

  • 0

I would like to plot the shifted logistic function as shown from Wolfram Alpha.

In particular, I would like the function to be of the form

y = exp(x - t) / (1 + exp(x - t))

where t > 0. In the link, for example, t is 6. I had originally tried the following:

x = 0:.1:12;
y = exp(x - 6) ./ (1 + exp(x - 6));
plot(x, y);
axis([0 6 0 1])

However, this is not the same as the result from Wolfram Alpha. Here is an export of my plot.

I do not understand what the difference is between what I am trying to do here vs. plotting shifted sin and cosine functions (which works using the same technique).

I am not completely new to Matlab but I do not usually use it in this way.

Edit: My values for x in the code should have been from 0 to 12.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:41:17+00:00Added an answer on May 27, 2026 at 12:41 am

    fplot takes as inputs a function handle and a range to plot for:

    >> fplot(@(x) exp(x-6) / (1 + exp(x-6)), [0 12])

    Function of interest

    The beauty of fplot in this case is you don’t need to spend time calculating y-values beforehand; you could also extract values from the graph after the fact if you want (by getting the line handle‘s XData and YData properties).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to plot implicit equations (of the form f(x, y)=g(x, y) eg.
in python, I would like to use: from pylab import * Then use plot
I would like to plot connected points in MATLAB. My connected points come from
I would like to plot an implicit function of x and y: 1 -
I would like to plot a decomposition tree in Mathematica. I have a function
A would like to plot geom_tile() without displaying the surrounding grey frame. Example: library(ggplot2)
I would like to plot a vertical line (I'd prefer any orientation, but I'd
I would like to plot y1 and y2 in the same plot. x <-
I have a vector of integers, e.g.: 2,8,11,19 . I would like to plot
I would like to plot the greasy test signal in Matlab, and then plot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.