Unrecognized function or variable

조회 수: 2 (최근 30일)
Deep Dave
Deep Dave 2021년 10월 18일
답변: Cris LaPierre 2021년 10월 18일
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

답변 (1개)

Cris LaPierre
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
Unrecognized function or variable 'y_1_0'.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by