CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MATLAB help

  1. #1
    Join Date
    May 2012
    Posts
    1

    MATLAB help

    Hi,

    I'm new to MATLAB and programming, but I hoping to find out if I can have a variables in my program take on certain values only for certain time intervals. For example, I am using ode23s to solve some equations for me, but for the time interval [0,10] I would like one of the variables in from the equations to be 10, but from [10, 375] the variable should be 0.

    function CaMito2_p1
    [t,x]=ode23s('CaMito2_p',[0,375],[500e-9,0.9e-6]);
    plot(t,x(:,1))
    end

    Can anyone help me out? Thanks!!!

  2. #2
    Join Date
    Jul 2012
    Posts
    1

    Post MATLAB help

    can anybody help me to create dspmtrx2/matrix constant in matlab.
    or can anybody provide me DSP BLOCKSET for matlab 2011a.
    I need it desperately.

    also how can the code http://che.cycu.edu.tw/~ning/old/Mat...s/dspmtrx2.mdl
    be used ?

  3. #3
    Join Date
    Mar 2013
    Posts
    3

    Re: MATLAB help

    Hi,

    I am new to matlab and would be very grateful to anyone who could help. I am trying to solve a long polynomial of the third degree consisting of several terms. However the variable I want to solve for occurs both in the dominator and nominator. I was wondering how I could get all terms which involve the relevant variable onto one side of the equation to generate a simulation.

    I have tried solving it by hand with no luck and really need help!

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured