error: Divisor matrix must be square

error: Divisor matrix must be square - 消息

#1 已发布: 2026/2/11 00:35:43
Anna Ziobrowska

Anna Ziobrowska

0个赞,共3个帖子。

组: User

Hi, I got stuck trying to do the following:
image.png
The divisor matrix is:
image.png
image.png
I need the c.mn results
I'll appreciate some help, thank you in advance
已编辑 2026/2/11 00:36:16
#2 已发布: 2026/2/11 08:58:30
sergio

sergio

127个赞,共342个帖子。

组: User

I imagine you want to achieve element-wise division. You can use the vectorize function.

Solver_ktJm0bnT8D.png
sergio
1位用户喜欢此帖子
Anna Ziobrowska 2026/2/11 14:56:41
#3 已发布: 2026/2/11 11:24:24
Anna Ziobrowska

Anna Ziobrowska

0个赞,共3个帖子。

组: User

Thank you, it worked. But now im having a different problem, as shown below:
image.png
Wondering if it's truly unsolvable in Smath since I cant have scalars there bc I have to vectorize the functions
#4 已发布: 2026/2/11 12:18:58
sergio

sergio

127个赞,共342个帖子。

组: User

The external function "asin" should be evaluated element-wise.
sergio
Solver_KqV4kAjf40.png
1位用户喜欢此帖子
Anna Ziobrowska 2026/2/11 14:56:38
#5 已发布: 2026/2/11 13:52:31
Anna Ziobrowska

Anna Ziobrowska

0个赞,共3个帖子。

组: User

Thank you a lot, it worked. Got stuck again here:
image.png
#6 已发布: 2026/2/11 19:15:32
sergio

sergio

127个赞,共342个帖子。

组: User

Don't confuse subscripts (obtained, for example, with a.1) with array or matrix indices (obtained, for example, with a[1).
sergio01.sm (10.77 KiB)已下载 724 次。
  • 有新帖
  • 无新帖