why do I get error for Undefining function sdpvar and how can I solve it?
古いコメントを表示
I got an error saying:
Undefined function 'sdpvar' for input arguments of type 'double'.
Error in Untitled3 (line 1)
A=sdpvar(3,1); Tc=sdpvar(2,1); Tout=sdpvar(3,1); gam=1e5;
for the following code:

4 件のコメント
Geoff Hayes
2022 年 4 月 12 日
@Meme alcute - what is returned when you try
which -all sdpvar
from the command line? Please copy and paste the results to this question.
KSSV
2022 年 4 月 12 日
spdvar is not an inbuilt function. It is user defined function. We cannot help you unless the function is attached here.
Meme alcute
2022 年 4 月 12 日
Meme alcute
2022 年 4 月 12 日
回答 (1 件)
Cris LaPierre
2022 年 4 月 12 日
0 投票
This is not a MathWorks supplied toolbox, so you will need to follow the intructions given to you to install and use this toolbox.
5 件のコメント
Meme alcute
2022 年 4 月 12 日
Cris LaPierre
2022 年 4 月 12 日
Not sure, as it's not a MathWorks product, but I think exploring the Download menu on the page I linked to would be a good place to start.
Steven Lord
2022 年 4 月 12 日
Click the Download link on the page to which Cris linked and follow the instructions on that page.
Meme alcute
2022 年 4 月 12 日
Muhammad Yasir
2023 年 1 月 11 日
It is keyword/function of YALMIP. It's not a standard MATLAB operator or keyword.
Have you set path to YALMIP forlder from MATLAB?
Seems like your MATLAB is not recognizing YALMIP supported functions.
カテゴリ
ヘルプ センター および File Exchange で Transportation Engineering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


