Did you try this function for calculating the H Matrix ....
[Bbus, Bf, Pbusinj, Pfinj] = makeBdc(mpc.baseMVA, mpc.bus, mpc.branch);

## Advertising

Regards
Saeed Ahmed
On 13 April 2018 at 23:09, Saeed Ahmed <saeed.ahme...@gmail.com> wrote:
> The best i can do is to share a code with you... This code estimates the
> power flow using AC estimation criteria...
> You have to modify it according to your needs for DC state estimation ...
> When you have any progress let me know... you have to try and don't give
> up...
>
>
>
> Regards
> Saeed Ahmed
>
>
> On 13 April 2018 at 11:44, naime ahmadi <naimeahm...@gmail.com> wrote:
>
>> Thank you.
>> I want to calculate DC jacobuian matrix in matpower.
>> When I compare DC jacobuian matrix with Bbus, it is totally different.
>> How can I calculate DC jacobuian matrix ?
>>
>> On Tue, Apr 10, 2018 at 11:41 PM, Ray Zimmerman <r...@cornell.edu> wrote:
>>
>>> If you are looking for the sensitivities of power injections w.r.t.
>>> changes in voltage angle, that would be the Bbus matrix from equation
>>> (3.32) in the Userâ€™s Manual
>>> <http://www.pserc.cornell.edu/matpower/docs/MATPOWER-manual-6.0.pdf> which
>>> is returned from makeBdc()
>>> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/makeBdc.html>
>>> .
>>>
>>> Ray
>>>
>>>
>>> On Apr 10, 2018, at 5:04 AM, naime ahmadi <naimeahm...@gmail.com> wrote:
>>>
>>> Thank you.
>>> Actually I read that chapter. My problem is getting DC Jacobian matrix
>>> from matpower.
>>> Does j11 be the DC Jacobian matrix?
>>> mpc=loadcase('case14');
>>> [j11,j12,j21,j22,J, Ybus, Yf, Yt] = makeJac(mpc);
>>>
>>>
>>>
>>>
>>> On Mon, Apr 9, 2018 at 7:26 PM, Saeed Ahmed <saeed.ahme...@gmail.com>
>>> wrote:
>>>
>>>> Hi Ahmadi...
>>>>
>>>> First you need to understand the DC or linear State Estimation . You
>>>> can find Chap 2 of Ali Abur's Book.
>>>> After that you can use the built-in functions in MATPOWER for the
>>>> formulation of H vector and this all becomes simple once you have solid
>>>> understanding of theory...
>>>>
>>>> Regards
>>>> Saeed Ahmed
>>>>
>>>>
>>>> On 9 April 2018 at 15:46, naime ahmadi <naimeahm...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>> How can I use matpower to calculate DC state estimation?
>>>>> Kind Regards,
>>>>> Naime
>>>>>
>>>>
>>>>
>>>
>>>
>>
>