필터 지우기
필터 지우기

How to write this b in matrix form

조회 수: 1 (최근 30일)
Sam
Sam 2014년 4월 22일
댓글: Sam 2014년 4월 23일
Can anyone help me write this b in matrix form in matlab?

답변 (1개)

Joseph Cheng
Joseph Cheng 2014년 4월 22일
편집: Joseph Cheng 2014년 4월 22일
Look for the patterns and you can build these efficiently.
n=100;
b=1:n;
b=b.^2;
b=b/(n+1)^4;
b(1)=b(1)+1;
b(end)=b(end)+6;
  댓글 수: 3
Joseph Cheng
Joseph Cheng 2014년 4월 22일
편집: Joseph Cheng 2014년 4월 22일
well i can't do everything for you. Talk about looking at a gift horse in the mouth. just transpose what i wrote or initialize b to be the correct size.
Sam
Sam 2014년 4월 23일
Wow chill man. I wasn't telling you to do everything. I just didn't know how to write this as a matrix form in matlab, that's all.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by