Problem with multiplication n*(n+1)

I want to change the index of this 3 summations using only one index, so I need to calculate j = 2*(n*(n+1)+m-1)+s for using the new index j.
Why does n*(n+1) generate an error?

댓글 수: 5

madhan ravi
madhan ravi 2020년 5월 31일
show the full code
Is n a vector? Do you know what the operator .* does, and why you need to use it INSTEAD of the * operator here? If not, then read the help for times.
help times
Laura Passalacqua
Laura Passalacqua 2020년 5월 31일
n isn't a vector
Image Analyst
Image Analyst 2020년 5월 31일
You're not making it easy for us to help you, are you? Do you maybe have a picture of the formula with three sums that you can post (but only after reading this link)?
Steven Lord
Steven Lord 2020년 5월 31일
What is the full and exact text of the error message you received? Show all the text displayed in red (and/or orange, if you also received warnings) in the Command Window when you run the code that performs the multiplication that throws the error.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

태그

질문:

2020년 5월 31일

댓글:

2020년 5월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by