How do I create a Table with variable cell element

조회 수: 2 (최근 30일)
Alfred Amiolemen
Alfred Amiolemen 2019년 7월 4일
댓글: Alfred Amiolemen 2019년 7월 5일
I am new in Matlab programming and I want to create a table whereby row 1 column 1 should hold a value within a range of 0-10, and row 1 column 2 hold a value 10.1-15 and so on. These values in the row and column cell will be based on an equation that will return the value that will fall within that range. It is such that only one cell will return a value at a time based on the input values to the equation. How will that be achieved?
  댓글 수: 5
Guillaume
Guillaume 2019년 7월 5일
@alfred, I'm afraid I don't really understand the question. Given the row vectors P = [P1, P2, P3, P4] and N = [N1, N2, N3, N4], the illustrated matrix is simply:
P .* N(:)
in any modern version of matlab. However, I don't think that's what is wanted.
Perhaps, instead of asking how to create some weird matrix, you should explain what the ultimate goal is. It sounds like you're trying to do some discretization, which is easily done in matlab.
Alfred Amiolemen
Alfred Amiolemen 2019년 7월 5일
The goal of the task is actually present the condition of equipment within the bands of those rows and columns
Where each cell represent the condition of the equipment based on the values they return as result.
The highlighted cell based on returned result, will enable one to determine the status of the equpment whether it is still good, moderate, bad or worse.
I dont know if I am able to explain myself with this.
Thanks

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by