How do i remove conj from differention?

조회 수: 43 (최근 30일)
Hamza Yusuf
Hamza Yusuf 2021년 10월 11일
답변: Chunru 2021년 10월 11일
My first task was to remove conj from my code anytime i transposed and i found posts to help me with it. I know want to how to remove them when i differentiate. There is a function y(t) but in the matrix output it is conj(diff(y,t)). I only ant the diff. How can i remove it. I want to end with the simplest math and the many conjs are ruining it.
clear all
syms x v s a y z r t real
syms x(t) y(t)
assumeAlso([y(t),x(t)],'real')
A=[x, diff(y(t),t), s;
y, z, r;
s x(t) a;];
A'
Output:
ans(t) =
[ x(t), y(t), s]
[conj(diff(y(t), t)), z, x(t)]
[ s, r, a]

채택된 답변

Chunru
Chunru 2021년 10월 11일
clear all
syms x v s a y z r t real
syms x(t) y(t)
assumeAlso([y(t),x(t)],'real')
A=[x, diff(y(t),t), s;
y, z, r;
s x(t) a;];
A.' % use transpose .' instead of complex conjugate transpose ()'
ans(t) = 

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by