フィルターのクリア

Transpose on ND array is not defined. Use PERMUTE instead.

2 ビュー (過去 30 日間)
hamed
hamed 2016 年 8 月 17 日
編集済み: James Tursa 2016 年 8 月 17 日
Hello All
I have an error in a line when I try to run my program. I want to write the following code:
ub=[maxc*ones(l,r,h3) c'];
So, I face this error:
Error using '
Transpose on ND array is not defined. Use PERMUTE instead.
Cheers
  3 件のコメント
hamed
hamed 2016 年 8 月 17 日
c is a matrix as following:
c = 100*ones(size(H1));
In which:
[l,r,h3]=size(H1);
So, I want to resolve the error that I mentioned. C returns me link capacities of the network's links.
Bests
James Tursa
James Tursa 2016 年 8 月 17 日
編集済み: James Tursa 2016 年 8 月 17 日
If you just want to get rid of the error, then get rid of the transpose:
ub=[maxc*ones(l,r,h3) c];
However, I am rather unconvinced that this will get the result you really wanted. Can you tell us why you had that transpose in the first place? I.e., what would you expect the dimensions of c' to be after the transpose operation, and how was that supposed to be combined with the other stuff inside the [ ].

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by