ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ
ํ•„ํ„ฐ ์ง€์šฐ๊ธฐ

Jacobian of Coordinate Change | Error using sym/jacobian (line 44) Second argument must be a vector of variables.

์กฐํšŒ ์ˆ˜: 7 (์ตœ๊ทผ 30์ผ)
Daniel Pusicha
Daniel Pusicha 2022๋…„ 3์›” 3์ผ
๋‹ต๋ณ€: Daniel Pusicha 2022๋…„ 3์›” 8์ผ
Hello everyone,
My goal is to compute the jacobian of a symbolic vector-valued function, however I get the error message:
Error using sym/jacobian (line 44)
Second argument must be a vector of variables.
The same error message appears when I try to execute the code from the example 'Jacobian of Coordinate Change' from the help page. By the way, inserting the 'Copy Comand' in my Matlab command line (currently I use MATLAB 2021a) also gives an error message:
>> openExample('symbolic/JacobianOfCoordinateChangeExample')
Error using findExample (line 35)
Example "JacobianOfCoordinateChangeExample" not found in "/Applications/MATLAB_R2021a.app/examples/symbolic/examples.xml".
I also found this post where it is suggested to use symbolic variables instead of symbolic functions but I think that is explicitly what I want to do?
UPDATE 1: I also checked this on an MATLAB 2020b release and the problems exist there as well however running the example in MATLAB Online works as it should. So maybe this is a new feature of the MATLAB 2021b release, however I couldn't find anything that indicates toward this in the release notes.
UPDATE 2: I just installed MATLAB 2021b on my local machine and it works ๐Ÿ˜„
Best,
Daniel

์ฑ„ํƒ๋œ ๋‹ต๋ณ€

Daniel Pusicha
Daniel Pusicha 2022๋…„ 3์›” 8์ผ
This question was answered in my original post

์ถ”๊ฐ€ ๋‹ต๋ณ€ (0๊ฐœ)

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Assumptions์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by