Initialization commands cannot be evaluated while working with distributed line parameter

hie i am simulating a single phase transmission line by using a distributed parameter line and i am getting this error: Error in 'mt2/transmission line/Model/Continuous': Initialization commands cannot be evaluated.
Caused by: Undefined function or variable "z". can somebody help me

2 件のコメント

Jan
Jan 2016 年 1 月 24 日
The error message sounds clear. Please inspect the code and search for the incorrect usage of an undefined variable "z".
Kumar
Kumar 2016 年 5 月 5 日
I have the same error after four months. But, there is no z parameter in the submask.
I have even searched the whole system using control+f for this 'z' variable. Matlab could not find it.
This is very poor from matlab's side. If nobody (from matlab's tech support) is going to answer these questions what is the point in having this "Matlab answers" page. There is no clear guidelines on how to use this particular model. I feel like simpower system is a frustration.
Some one from Matlab should answer these questions. If this question was already answered by matlab tech support in January, I would have had a solution for my problem now.
This is extremely poor technical support from matlab's side. Other software companies do have these forums. They dont just rely on the users to answer questions, they actively participate in them.

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

回答 (1 件)

Kumar
Kumar 2016 年 5 月 5 日

0 投票

From my understanding, when this error happens, there is some issue with the resistance, inductance, and capacitance values.
Since, you indicated that you are using a single phase line model, please make sure that the values for these variables are scalar. That is, unlike the three phase model where you have to provide r1, and r0, for the single phase you only need one r value (the same applies for c and l values).
I made this change and the error went away. Although, I am facing new errors, I am working on debugging them.

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2016 年 1 月 24 日

回答済み:

2016 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by