MATLAB How would you write this equation in MATLAB? (challenging)

  • Thread starter Thread starter leealex0201
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
To calculate the global maximum of the mutual information function in MATLAB, the user needs to compute the gradient of the function based on the provided vectors P(x) and P(x|spike), referred to as A and B. Both A and B are 1-by-100 vectors. The discussion emphasizes the importance of correctly implementing the gradient calculation in MATLAB to achieve the desired outcome. Additional information or context about the mutual information function and its mathematical formulation may be necessary for more precise guidance on the implementation.
leealex0201
Messages
1
Reaction score
0
Hello guys,

I would like to put this equation into the MATLAB to calculate the global maximum of mutual information function. In order to do that, I notice that I need a gradient of the function which is described as in attached files.

I do have the vector for P(x) and P(x|spike). Let's say they are called A and B respectively. Then, how do I write this down in MATLAB to calculate the gradient?

FYI, A and B are 1-by-100 vectors.
 

Attachments

  • Screen Shot 2014-04-25 at 10.18.59 AM.png
    Screen Shot 2014-04-25 at 10.18.59 AM.png
    6.1 KB · Views: 598
  • Screen Shot 2014-04-25 at 10.22.30 AM.png
    Screen Shot 2014-04-25 at 10.22.30 AM.png
    3.3 KB · Views: 552
Physics news on Phys.org
I'm sorry you are not finding help at the moment. Is there any additional information you can share with us?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K