how to solve the error "Unrecognized function or variable ".

10 ビュー (過去 30 日間)
Rami Ahmed
Rami Ahmed 2021 年 9 月 17 日
コメント済み: Rami Ahmed 2021 年 9 月 17 日
, I have this code and its gave me a solution of my proplem and the solution must satiesfied the condition of the sum( the condition of the sum is the sum of the number are linked together with this line must different for every time and we must have no repeated sum) like the photo below.
the variable N : is the rows number , M : the columns number and P : is the number of solution must appear, when I run the code error appear, the error is "Unrecognized function or variable 'seq'." for anyone can help if you can solve it do it please,

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 9 月 17 日
編集済み: Cris LaPierre 2021 年 9 月 17 日
The error suggests your code either can't find a function you use (it is not in the current folder or on the MATLAB path), or you are trying to use a variable that does not exist.
a = seq
Unrecognized function or variable 'seq'.
Your function returns a variable seq, so I suspect in your case it is the 2nd issue causing the error. A quick glance shows that seq is created in if statements, so what is likely happening is that your condition is never true, so seq is never created.
if Test=='T'
seq(:,:,v) = ...
  7 件のコメント
Cris LaPierre
Cris LaPierre 2021 年 9 月 17 日
Practice!
If you need help getting started, a great first step is MATLAB Onramp. In 2 hours, you will learn the basics of MATLAB. From there, explore other courses you may have access to here: https://matlabacademy.mathworks.com/
Rami Ahmed
Rami Ahmed 2021 年 9 月 17 日
Thanks alot you are the best🌹🌹

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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