フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

elliptic points as cell

1 回表示 (過去 30 日間)
sadiqa ilyas
sadiqa ilyas 2019 年 8 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I want to convert elliptic curve points as cell
a=0:66;
left_side = mod(a.^2,67);
right_side = mod(a.^3+1*a-3,67);
C={};
for i = 1:length(right_side)
I = find(left_side == right_side(i));
for j=1:length(I)
points = [points;a(i),a(I(j))];
C={points}
end
end
C=mat2cell(points)% all points
I dont know whats wrong with this
  1 件のコメント
Joel Handy
Joel Handy 2019 年 8 月 19 日
Can you tell us exactly what doesnt work. Its generally very useful to give a statement like, "I expect ..., but what I'm getting is ...".
running the code, I get teh pretty clear error, "Undefined function or variable points." You are trying to concatinate the variable points before it exists. You need to define points before your loops.
points = [];
I suspect there are more issues but we'll need more information before I can help further.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by