Filter löschen
Filter löschen

i had matrix s of size 4*12540, i want to take power of this matrix raise to 4*12540,how should i do it?

1 Ansicht (letzte 30 Tage)
i had matrix s of size 4*12540, i want to take power of this matrix raise to 4*12540,how should i do it?
  2 Kommentare
amina mehmood
amina mehmood am 31 Mär. 2014
i had tried s2.^4*12540, it works but now i am taking the square root of this but error occurred that Matrix must be square. what should i do now?
amina mehmood
amina mehmood am 31 Mär. 2014
s2_sqrt=sqrtm(s2_power) this was generating error of matrix must be square then i tried s2_sqrt=sqrt(s2_power) it gives result so what is the difference among sqrtm and sqrt

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 31 Mär. 2014
Amina, I am not sure I can follow. In general, if you need to take the nth power simply use
n = 3;
s3 = s.^n;
or
s3 = s.^3;
  1 Kommentar
amina mehmood
amina mehmood am 31 Mär. 2014
i had tried s2.^4*12540, it works but now i am taking the square root of this s2_sqrt=sqrtm(s2_power) this was generating error of matrix must be square then i tried s2_sqrt=sqrt(s2_power) it gives result so what is the difference among sqrtm and sqrt

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by