フィルターのクリア

convert equation to matlab code

1 回表示 (過去 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 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