필터 지우기
필터 지우기

Problem with using symbolic expersion in function toeplitz

조회 수: 2 (최근 30일)
Francisco Williams
Francisco Williams 2020년 9월 18일
댓글: Francisco Williams 2020년 9월 22일
I'm having some problems with the toeplitz function when using symbolic variables
syms a b c
toeplitz([a b c], [1 b/2 a/2])
I get the following error
Error using toeplitz (line 22)
Inputs must be numeric.
I'm using Matlab 2019b, I don't think this is a bug since when I open Matlab "toeplitz" function, it has that error call
Thanks in advance
  댓글 수: 1
Francisco Williams
Francisco Williams 2020년 9월 18일
update: I check the same function in Matlab 2019a and it worked. However I would like to find a workaround for the 2019b.

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2020년 9월 18일
Might be a bug. I didn’t have any problems with 2020a either. It’s better if you make a big report.
  댓글 수: 5
Francisco Williams
Francisco Williams 2020년 9월 21일
what? I didn't, I KNOW that. Check the name of the function toepliztPaco (that's my function). I just went inside the MAtlab toeplitz function copied and created my own function and commented the isnumeric condition.
As I MENTIONED in my last comment.
Francisco Williams
Francisco Williams 2020년 9월 22일
Update
toeplizt function can indeed take symbolic in Matlab 2019b. The problem I had was that I installed Maple and click on "link to Matlab" option. This option uses Maple symbolic solver and affects other Matlab functions.
I uninstalled Maple and then everything worked as it should. No need to create my own toeplitz function

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by