MATLAB Answers

How can i make equal two matrices?

2 views (last 30 days)
Volkan Yangin
Volkan Yangin on 5 Nov 2020
Commented: KSSV on 5 Nov 2020
Hi,
xx0 =
[(5347071735127577*t)/2251799813685248 + 10, 10 - (867684789143429*t)/8796093022208]
[ 56 - (49822173224577*t)/562949953421312, 11 - (154000297519623*t)/274877906944]
[ (3019465549340397*t)/562949953421312 + 1, 21 - (1879737356617211*t)/281474976710656]
I want xx0 to be equal to this:
[x01(t), x02(t)]
This matrix should include 3 rows and 2 columns. In these matrices, t means time and is a symbolic expression.
Is there any way to do this?
Thanks a a lot!
  3 Comments
KSSV
KSSV on 5 Nov 2020
With what you want to repalce x01 ans x02?

Sign in to comment.

Answers (1)

VBBV
VBBV on 5 Nov 2020
Edited: KSSV on 5 Nov 2020
syms t
xx0= [(5347071735127577*t)/2251799813685248 + 10, 10 - (867684789143429*t)/8796093022208;
56 - (49822173224577*t)/562949953421312, 11 - (154000297519623*t)/274877906944;
(3019465549340397*t)/562949953421312 + 1, 21 - (1879737356617211*t)/281474976710656]
x01(t) = [(5347071735127577*t)/2251799813685248 + 10;
56 - (49822173224577*t)/562949953421312;
(3019465549340397*t)/562949953421312 + 1]
x02(t) = [10 - (867684789143429*t)/8796093022208;
11 - (154000297519623*t)/274877906944;
21 - (1879737356617211*t)/281474976710656]
iwant = [x01(t) x02(t)];
Is this ?
  1 Comment
Volkan Yangin
Volkan Yangin on 5 Nov 2020
x01 and x02 should be extracted from xx0 matrix automatically.
x01=First line of xx0
x02=Second line of xx0

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by