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

  • Context: MATLAB 
  • Thread starter Thread starter leealex0201
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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: 618
  • 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: 576
Physics news on Phys.org