필터 지우기
필터 지우기

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 (최근 30일)
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
amina mehmood
amina mehmood 2014년 3월 31일
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 2014년 3월 31일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Mischa Kim
Mischa Kim 2014년 3월 31일
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
amina mehmood
amina mehmood 2014년 3월 31일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by