How to analyze a three dimensional matrix???

조회 수: 6 (최근 30일)
TRAILOKYA
TRAILOKYA 2014년 9월 4일
답변: Chad Greene 2015년 1월 22일
Sir I have a matrix of dimension 40*40*13. so I have 13 data for each grid in the third direction for 13 years from 2000-2012. Now I have to find out a trend line for each grid, Say y=mx+c, where 'm' is the slope, y is the data and x is the years. I need only 'm' which i have to use so that i get a file having only slope of dimension 40*40. Please help me how to do it?
  댓글 수: 2
Guillaume
Guillaume 2014년 9월 4일
Is this homework? (sounds like it).
Your problem is fairly trivial. If you showed what you've done so far and where you're stucked, you'd have more chance to get a reply.
Stephen23
Stephen23 2014년 9월 4일
"Please help me how to do it?": in four easy steps:
  • Understand the problem.
  • Search online for examples of fitting lines to 3D data, and reading/writing files.
  • Read the MATLAB documentation for the functions that are used.
  • Write your own code to attempt to solve the problem.
Come and ask here if anything is not clear, giving exact examples of the code you are using, what you expect it to do, and what it does.

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

답변 (1개)

Chad Greene
Chad Greene 2015년 1월 22일
If all you need is a map of slopes or linear trends, trend will do it.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by