フィルターのクリア

Integration of a function

2 ビュー (過去 30 日間)
Amy
Amy 2014 年 3 月 11 日
Hi
I want to solve the integral of (delta/A^2) between 0 and 0.9999999.
delta and A^2 are double workspace variables I have saved as txt files.
My Script so far for this is
load ASqr.txt
load delta.txt
realZeros = (1/pi).*(int('delta./ASqr',0,0.9999999))
format long e
realZeros
When I run the script in the command window the following error is being thrown up
Undefined function 'int' for input arguments of type 'double'
Which I am unsure about, would anyone be able to guide me on where I am going wrong, as solving integrals in matlab is new to me. Thank you in advanced.
  1 件のコメント
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014 年 3 月 11 日
I'm not sure wha't is the function you want to take the inetgral from. I guess it's Dirac or as you said delta, if you want to perform a symbolic inegral you have to define a symbol first
syms x
y=int(dirac(x))
subs(y,.999)-subs(y,0)
Which gives you 1 anyway! Hope that wouls solve the problem! Good luck!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by