フィルターのクリア

error in writing matrix

1 回表示 (過去 30 日間)
sachin k
sachin k 2017 年 8 月 30 日
コメント済み: KL 2017 年 8 月 30 日
I Want to write the matrix from function el(j,k). when I run this, it gives so many errors, please help
lagu=@(j,k,l) feval(symengine,'laguerreL',j,k,l);
ele1=@(j,k) exp(0.25)*sqrt(2.^k/factorial(k))*sqrt(factorial (j)/2.^j)*lagu(j,k-j,-0.5)*(0.5).^(k-j);
ele2=@(j,k) exp(0.25)*sqrt(2.^k/factorial(k))*sqrt(factorial (j)/2.^j)*lagu(j,k-j,-0.5)*(-0.5).^(k-j);
el=@(j,k) 0.5*i*(ele1(j,k)-ele2(j,k));
res=bsxfun(el,1:2,(1:2).')
  2 件のコメント
José-Luis
José-Luis 2017 年 8 月 30 日
Seriously? You already asked this question today, and accepted an answer that didn't solve your problem by the way.
You also ignored requests for clarification.
I'll repeat: the function el needs to produce a scalar. Does it do that?
KL
KL 2017 年 8 月 30 日
Yes, you should rather delete one of the questions and edit the other with more information such as
  • the complete error message,
  • your expected output for an example input
and tag the relevant products so it becomes a meaningful post. I'm deleting my answer on your other post, your question was nowhere close to this problem and my answer was purely based on my understanding of your explanation and speculation of your needs.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by