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

  • SEARCH
  • Home
  • 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 4024698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:45:14+00:00 2026-05-20T10:45:14+00:00

I am proper stuck on plotting a graph. It’s a graph of flow simulation,

  • 0

I am proper stuck on plotting a graph.

It’s a graph of flow simulation, I need to be able to see the graphs for about 25 time segments between t=0 and t=1.

this is the code I’ve written that does it for t=0.1. I obviously can’t repeat the code 25 times. Is there any way of programming it to plot all in one go. i.e using loop?

ALSO, I need to redefine both the axis to go from 0 to 1.

Many thanks

  • 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-20T10:45:14+00:00Added an answer on May 20, 2026 at 10:45 am
    t=linspace(0,1,25)
    for k=1:length(t)
    
      A=(a1^2*P)/(i*mu*L*alpha^2)
    
      B1=i^1.5*alpha*r/a1
    
      B2=i^1.5*alpha
    
      B11=besselj(0,B1)
    
      B22=besselj(0,B2)
    
      B=1-(B11/B22)
    
      C=exp(i*w*t(k))
    
      u=real(A*B*C)
    
      plot(u,r,u,-r)
      drawnow
    end
    

    use drawnow after your plot command. this will force matlab to draw the plot immediately, enabling you to see the progress of the simulation.

    EDIT:
    I didn’t see the last bit. To set your x & y axis to go from 0 to 1, do xlim([0 1]) and ylim([0 1])

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

Sidebar

Related Questions

I am a bit stuck on how I should model this out. Here is
I am building an asp.net site in .net framework 4.0, and I am stuck
I did a merge between the trunk and a branch. On the trunk, there
I am trying to show BOTH the date and the time in Flex 3.5
I have a couple of generic lists with completely different types of data. In
I have a listview with a dozen of rows binded to xml. I'd like
It's possible (even probable) that I'm just not fully grokking the concept of a
I am new to Django, i was going through this Django site for building
I have a map of a vector of char 's and a vector of
I am trying to convert a double to a string on the stack from

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.