I have code that uses ishift(Kr1')' What is the function of the single quotes?

Here is a sample of the code:
Kr(1:2:M,2:2:N)=(Kr0+shift1(Kr0)+Kr1+ishift1(Kr1')')/4;
The Krx are matrices and the shift is a function to shift either left or write. I have run this code with and without the single quotes and it gives different answers but I can't understand what the ')' is doing?

 Accepted Answer

This line
ishift1(Kr1')'
Can be written as
a=Kr1' % Conjugate transpose of Kr1
b=ishift(a)' % transpose of ishift(a)
Example
k=[1 2 3];
out=sin(k')'

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!