Unrecognized function or variable
3 次查看(过去 30 天)
显示 更早的评论
I am having a error in my code in line 5. The error is as shown below can someone please help me with it?
Unrecognized function or variable 'y_1_0'.
Error in BEProj (line 5)
generateParamY(subKey) = [y_1_0, y_2_0, y_3_0];
clc; clear all; close all;
subKey = '';
save('subkey.mat','subKey');
load('subkey.mat');
generateParamY(subKey) = [y_1_0, y_2_0, y_3_0];
[x_0_1 x_0_2 x_0_3] = generateParamX(subKey);
[epsilon, mu, alpha_1, alpha_2, alpha_3] = generateParam(subKey);
newper
df
decry
INVPER
INVIMAGE
0 个评论
回答(1 个)
Cris LaPierre
2021-10-18
You start your script with 'clear all', so no variables exist in your workspace. Then in your 5th line of code, you try to use y_1_0. What is this supposed to be? If it's a variable, it doesn't yet exist. If it's a function you wrote, MATLAB can't find it. The result is the error message you see.
I can duplicate the error here, too.
y_1_0
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!