필터 지우기
필터 지우기

convert equation to matlab code

조회 수: 5 (최근 30일)
hajer
hajer 2011년 11월 27일
Hi,How i can convert equation to matlab code?? like this , root( summation from i=1 to N [N(i)]Square ) plz can any one help me :(

답변 (1개)

Image Analyst
Image Analyst 2011년 11월 27일
Did you try
result = sum(N .^ 2)
but I'm not sure if N is the last index to sum to, or if it's the name of the array you're summing. You can't have it both ways. In my code above I summed over all elements in the N array.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by