choosing function in array problem
古いコメントを表示
In this case i want to / already take(n) the biggest Absol-value, because of that i have to process the number in 'Pos' and 'Value', sequentially 11 and -3.4. what i want to ask is:
- what function did i have to use to take value of 'Pos' and 'Value' separately and combined ? so far i just learn about max/min and other functions but it's only dscribe itself and not other data
- could you give me the example of this with value of 'Value' and 'Pos' separately and combined taken? thanks alot for this to help my study in make thesis :)
much love
data in MATLAB is simplified like this
Table = [ 1 2 3 4 5; %Number
7 8 9 11 15; %Pos
0.8 1.5 3 -3.4 2; %Value
0.8 1.5 3 3.4 2;] %Absol-value
choose_abs_tab = max(Table(4,:))
% we get the value of choose_abs_tab is at cell (4 , 4)
%after this step i want to take data at cell (3,4) and cell(2,4)
%problem asked is what i write it
6 件のコメント
Rik
2022 年 9 月 22 日
What is your input in terms of Matlab variables, and what is the output you want in terms of Matlab variables? It sounds like it will be fairly easy to solve your problem, but currently it is not clear enough for me what your actual problem is.
M Adli Hawariyan
2022 年 9 月 22 日
編集済み: M Adli Hawariyan
2022 年 9 月 22 日
Dyuman Joshi
2022 年 9 月 22 日
編集済み: Dyuman Joshi
2022 年 9 月 22 日
What Rik is asking is, what is your data format?
Is it numeric? If so, all in one array
mat=[1 2 3 4 5
7 8 9 11 15
0.8 1.5 3 -3.4 2
0.8 1.5 3 3.4 2]
Or individual variables?
Number = [1 2 3 4 5]
Pos = [7 8 9 11 15]
Value = [0.8 1.5 3 -3.4 2]
Absol_Val = [0.8 1.5 3 3.4 2]
Or is the data in a table? or a cell array?
Rik
2022 年 9 月 22 日
You don't show your Matlab variables (neither input nor output). Without it I cannot provide you with adequate help.
M Adli Hawariyan
2022 年 9 月 22 日
編集済み: M Adli Hawariyan
2022 年 9 月 22 日
M Adli Hawariyan
2022 年 9 月 22 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!