how to use logic array
古いコメントを表示
i have a 8x6 logical array
result1 =
8×6 logical array
1 0 0 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 0 0 1
0 0 0 0 0 0
how to use this logical array to extract the values in two matrix assosiated with logical ones
8 件のコメント
madhan ravi
2019 年 8 月 1 日
You need to be clear how does your look like? the sizes??
karishma koshy
2019 年 8 月 1 日
KSSV
2019 年 8 月 1 日
What exactly is your problem?
karishma koshy
2019 年 8 月 1 日
編集済み: karishma koshy
2019 年 8 月 1 日
KALYAN ACHARJYA
2019 年 8 月 1 日
編集済み: KALYAN ACHARJYA
2019 年 8 月 1 日
Madhan, already ask about sizes? Have you looked on it? I did not get any clue, just do combine of frame1 and frame2, give us the results with 8x6, rest is easy.
If you want to any logical operation between result1 and frame, both must be the same.
Or
Elaborate the question with simple example?
karishma koshy
2019 年 8 月 1 日
Guillaume
2019 年 8 月 1 日
@karishma, you asked this question already and I asked for clarification. Instead of clarifying you deleted that question and reposted it with even less information.... and you get asked the same clarifications.
So,if you want help, rather than wasting everybody's time do answer the questions that you're asked and spend time explaining everything clearly.
The question that you deleted was a lot better expressed than what you've written above even though it wasn't clear. It's even less clear now.
Personally, I won't contribute anymore since my input wasn't thought worthwile.
karishma koshy
2019 年 8 月 1 日
採用された回答
その他の回答 (1 件)
Jackson Burns
2019 年 8 月 1 日
row_frame_data(result1)
Where row_frame_data is the 8*6 atrix of results and result1 is the logical matrix of the values you want.
4 件のコメント
karishma koshy
2019 年 8 月 1 日
編集済み: karishma koshy
2019 年 8 月 1 日
Mark Hayworth
2019 年 8 月 1 日
Exactly. Why is your logical matrix not the same size as the matrix you want to extract the values from. Your logical matrix has 4 more columns than your data. Why???
karishma koshy
2019 年 8 月 1 日
編集済み: karishma koshy
2019 年 8 月 1 日
Jackson Burns
2019 年 8 月 1 日
You will need to adjust the dimensions of your logical array to match the data.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!