Community Profile

photo

Daniel


Last seen: 3 years ago Active since 2012

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How to approach solutions in integration problems? How to overcome matrix dimensions problems in complex integrand? Calculating Ion Beam Range from Stopping Power (following ICRU Report 49 CSDA discussion)
Trying to calculate the integral mentioned in ICRU Report 49, continuous-slowing-down approximation range being the integral of ...

9 years ago | 1 answer | 0

1

answer

Question


Cannot call function
Simple Problem: Cannot call function; Function function? Need to use function handles? Error: "Undefined function or method ... ...

12 years ago | 2 answers | 0

2

answers

Question


How do we plot repetitive items simply? Can a loop and eval be used, for example? How d'you nest a string within a string?
Note the repetitive nature of the following script. Isn't it possible code this more simply using a loop of some kind, and perha...

12 years ago | 1 answer | 0

1

answer

Question


How do I determine the length of the input vector to quad?
I am trying to use quad instead of sum to obtain a more realistic model. The function for quad is of the form f(E) * exp(-con...

12 years ago | 1 answer | 0

1

answer

Question


How must I declare a function handle that refers to a function you've written? What syntax is necessary?
I keep getting the error, "??? Output argument [...] not assigned during call to" my function psi_en whenever I try any of the f...

12 years ago | 2 answers | 0

2

answers

Question


How to print string or variable in plot title?
I want to prompt for a file name, e.g. "4.dat", "6.dat", etc. I want to store it as a string to be used both to open that file -...

12 years ago | 2 answers | 1

2

answers

Question


Is dynamic interpolation of input of function for 'quad' integration possible?
My task is to integrate a function given limited data, e.g. max_energy = 1000; quad(@(x) a.*x.*exp(-b.*x),0,max_energy...

12 years ago | 3 answers | 0

3

answers

Question


How do I integrate a very simple function with specified inputs?
What I want to do is very simple, and so I am very frustrated. I simply want to integrate a function of multiple variables, i.e....

12 years ago | 1 answer | 0

1

answer