Feeds
질문
Merge vector and matrix with duplicated common values
I have a large size of matrix and here is the sample. I have an another vector,B. A = 1 1 2 3 … 1 2 3 5 1 3 4 2 ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
why innerjoin does not work in parfor?
While trying to use parfor, I am trying to find an error. I found that using a innerjoin (line 10-12 below) makes a problem. It ...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
why parpool(n) does not work?
I am using most recent Matlab version, Matlab R2018a. I am trying to use parfor. When I first use parpool(4) it does not work an...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
resample data based on a particular variable
I have a large dataset as below. From the data, I want to randomly sample based on 'id' produce the same size data. Since the da...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
subtract rows under a condition
I am trying to create a data by subtracting rows that meet a condition. A sample of my data is this dataA = id value ...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
group sum with matrix
With below matrix, I would like to have a sum of the third column and a sum of the fourth column by groups that are the combinat...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
find max by groups, subtract the max from values if a certain condition is satisfied
I have a matrix as below (add column name for the convenience here). With the matrix, if max of value for each group is larger t...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Add column of group sum to the right of matrix
I have a large matrix and want to add group sum to the right. I would like to create group sum based on a first and second colum...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Divide dataset into N parts, remove vectors (or Matrix) with NaN and store all subdata into one list or array
I recently switched to Matlab from R so, I am a beginner of Matlab. I have a very large dataset and below is the sample, MM2, ...
7년 초과 전 | 답변 수: 1 | 0
