Thread Subject: What is the maximum Tolerance in Simulink??????

Subject: What is the maximum Tolerance in Simulink??????

From: Prashant Sandhi

Date: 15 Mar, 2010 15:31:37

Message: 1 of 1

Dear friends,

      I would like to know What is the maximum Tollerence that can be mentioned in Simulink simulation. I have mentioned a Tolerance of "if((slope >0.1*10^-16)". Is it valid. As i can get good results at this tolerence. Long back I have read about the the maximum tolerance that can be mentioned in Simulink but I dont find it. please tell me were I can find this information.

Embedded Matlab Function block:

function y = fcn(u,t)
%#eml

persistent mytime;
persistent counter;

if(isempty(mytime))
    mytime = 0;
    counter = 0;
    y = 0;
else
    
    slope = u;
    check_time = t;
    
    if((slope >0.1*10^-16) && (counter < 1) && (check_time > 2))
        mytime = t;
        counter = 1;
        
        y = mytime;
    else
        y = mytime;
        
    end
    
end

Thanking you,

Sandhi

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
what is the max... Prashant Sandhi 15 Mar, 2010 11:34:10
rssFeed for this Thread

Contact us at files@mathworks.com