Rank: 3366 based on 32 downloads (last 30 days) and 2 files submitted
photo

Matthias Chung

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Matthias View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Nov 2010 Descriptive Statistics Calculates key values of the descriptive statistics Author: Matthias Chung statistics, descriptive statistic..., quartile, percentile, boxplot, whisker 13 3
  • 4.0
4.0 | 3 ratings
01 Dec 2008 Screenshot Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung integration, quadrature, simpson, lobatto, numerical, adaptive 19 10
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Matthias
Updated File Comments Rating
26 Mar 2009 Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung

Reply to the last comment:

It is very easy to pass arguments to the "anonymous" function. As I recall correctly, since Matlab 6 the "@" function is exactly doing what you want. Here is an example

y = c1; f1 = @(x) f(x,y);
int1 = adaptiveLobatto(f1,a,b);

x = c2; f2 = @(y) f(x,y);
int2 = adaptiveLobatto(f2,a,b);

This makes your code more clear than passing all the arguments to the "anonymous" function.

Best,

Matthias

Comments and Ratings on Matthias' Files View all
Updated File Comment by Comments Rating
25 Jul 2013 Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung Elias

does it work on vectors or matrixes ??

25 Jul 2013 Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung Elias

x=[1,1,1,1,1,1,1,1,1,1,1,1]
z=adaptivelobatto(@(y)cos(x*y),0,0.5*pi,10e-6)
i get an error
z=quadv(@(y)cos(x*y),0,0.5*pi) no error
how can i use the adaptivelobatto in this case

05 Sep 2012 Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung Martin

Hi Matthias,
I have tried to use your codes to improve the speed of my functions.
Though if I use the example from your codes:
Q = adaptiveSimpson(@(x) [-cos(50*x); sin(x)], 0, pi, 'tol', 1e-6)
I get the following error:
Undefined function 'adaptiveSimpson' for input arguments of type 'function_handle'.

How come?

21 Jan 2012 Descriptive Statistics Calculates key values of the descriptive statistics Author: Matthias Chung Shatrughan

Useful..but could have been better if the calculation based on groups or classes would have possible..for example, in a single column data (variables), you have several classes (categories), and then calculation on each categories would have achieved. If you do not understand, please refer "grpstats" function of MATLAB..Combination of these fucntions would give more flexibility may be...Anyway good function... :)

02 Mar 2011 Iterative Adaptive Simpson and Lobatto Quadrature Iterative Adaptive Simpson and Lobatto Quadrature Author: Matthias Chung Koehler, Stephan

this works much faster than MATLAB's quadv, because quadv does not vectorize (i.e. it evaluates the function using only single values).

Contact us