hİ, solver returns this for syms matrix forms. How should I use solver?
syms K11 [3 3] matrix
syms deltat [1 1] matrix
solve([K11+K11==deltat*K11],[deltat])
gives
Check for incorrect argument data type or missing argument in call to function 'solve'.

10 件のコメント

Dyuman Joshi
Dyuman Joshi 2021 年 5 月 3 日
Why are you writing matrix while defining the variables?
Ahmet Parker
Ahmet Parker 2021 年 5 月 3 日
in R2021a this is a new option. They are matrices and matlab applies martix rules. And they are symbols
Dyuman Joshi
Dyuman Joshi 2021 年 5 月 3 日
Oh, Don't know about that. Anyways, here's what I have done. Is this what you want?
Ahmet Parker
Ahmet Parker 2021 年 5 月 3 日
No, thank you very much
Walter Roberson
Walter Roberson 2021 年 5 月 3 日
solve() is not defined for symmatrix() yet.
solve(symmatrix2sym([K11+K11==deltat*K11]),symmatrix2sym(deltat))
Dyuman Joshi
Dyuman Joshi 2021 年 5 月 3 日
Apologies for hijacking the problem, but is there a way to know what new functions have been to added to the latest version of MATLAB? @Walter Roberson
Swatantra Mahato
Swatantra Mahato 2021 年 5 月 5 日
@Dyuman Joshi as far as I am aware you can get information on new features and funcitons in a toolbox from its Release Notes
Dyuman Joshi
Dyuman Joshi 2021 年 5 月 5 日
@Swatantra Mahato How to know which toolboxes have been introduced with the newest release? In the release notes of the version?
Walter Roberson
Walter Roberson 2021 年 5 月 5 日
In R2021a, the new toolboxes are:
Dyuman Joshi
Dyuman Joshi 2021 年 5 月 5 日
@Walter Roberson Thank you for the link, it is exactly what I was looking for!

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

 採用された回答

Swatantra Mahato
Swatantra Mahato 2021 年 5 月 5 日

0 投票

Hi Ahmet,
You can execute the following command (as mentioned under Limitations section for the "symmatrix" funciton) to find the functions which currently accept symbolic matrix variables as input
methods symmatrix
solve currently does not support symbolic matrix inputs (as also mentioned by @Walter Roberson)
Hope this helps

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by