Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.8K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

How to match two matrices?

The matrix Omega is actually the matrix omega1. How can match the elements of the two matrices?

Do you have other ways to solve this problem?

POSTED BY: JIAO LI
3 Replies
Posted 4 years ago

Hi Jiao,

What do you mean by

How can match the elements of the two matrices?

Compare them? Create them in a simpler way? ...?

POSTED BY: Rohit Namjoshi

No, I mean to assign the corresponding values of matrix [omega] to the matrix [omega1].

POSTED BY: JIAO LI
Posted 4 years ago

The row / column indices are not changed in the explicit assignment, so what is wrong with

ω1 = ω

When I copy/paste and run the code I get different values

ω
(* {{0, 0.0325345, 0.0325345}, {0.0290918, 0, 0.0290918}, {0.0256933, 0.0256933, 0}} *)
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard