以下是我的代码。
as = Flatten[Import["e:\\matlab\\piturn\\Nor_bms\\as.mat"]];
da = AccountingForm[
Flatten[Import["e:\\matlab\\piturn\\Nor_bms\\da.mat"]]];
For[i = 1, i < 2304, i++, ghdparam = Table[0, {i, 1, 909}, {j, 1, 5}];
For[j = 1, j < 910, j++,
path = "e:\\mathematica\\abs_5s\\" <>
StringTake[ToString[AccountingForm[da[[1, j]]]], 8] <> "\\" <>
as[[i]] <> ".mat";
If[FileExistsQ[path], abs = Flatten[Import[path], 1], Continue[]];
abms = abs[[All, 1]] - abs[[All, 2]];
Print["i=", i];
ghdparam[[j]] =
FindDistributionParameters[abms,
HyperbolicDistribution[\[Lambda], \[Alpha], \[Beta], \[Delta], \
\[Mu]], ParameterEstimator -> "MethodOfMoments"];Print["j="];
Print[j];
Export["e:\\mathematica\\continuous\\" <> as[[i]] <> ".mat",
ghdparam];
Clear[path, abs, abms]]]
该图像是我在数学中的代码输出的一部分。"i=1" 表示 out 循环中的第一个循环,"j=2" 表示内部循环中的第二个循环。现在我想找到带有错误信息的点。比如这张图,只有i=1,j=5时,才没有错误信息。然后我想得到有错误的 j 点列表,就像 {1,2,3,4}。因为程序会循环很多次,我想通过代码来做到这一点。愿有人帮助我!谢谢你!