Community Profile

Andrei Bobrov

Last seen: Today
4,905 2011 이후 총 참여 횟수

Andrei Bobrov's 배지

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
How to convert datenum to datetime in a MATLAB Table
a=[2 737735.191331019 6 737735.182129630 3 737735.182013889 7 737735.141481482]; T...

4일 전 | 0

답변 있음
Unique Number Assignment To Each Time
a=[1.1, 1.1, 1.1, 1.2, 1.2, 1.2, 2.1, 2.1, 2.1]' [i,g]=findgroups(a); out = i - 1;

6일 전 | 0

| 수락됨

답변 있음
Find max value with multiple conditions
T=readtable('wave height data.xlsx'); [r,rn] = findgroups(T(:,1)); [c,cn] = findgroups(T(:,2)); out = accumarray([r,c],T.Wave...

8일 전 | 1

| 수락됨

답변 있음
Count smaller than 15 cells in the table coulumns
T = varfun(@funir,results_excel,'I',2:5); T.Properties.VariableNames = results_excel.Properties.VariableNames(2:end); T.statio...

8일 전 | 0

답변 있음
Is there a way to find the max value in an array without using the "max" command?
Let A - your array. B = A(:); max_value = B(all(B - B' <= 0));

8일 전 | 0

답변 있음
how can i find the average of every single raw in a matrix without using sum or mean function ?
n = size(sc,2); out = sc*ones(n,1)/n;

9일 전 | 0

답변 있음
Consolidating counts & sum by Year Range
y = [2001, 2002, 2005 2003, 2004, 2007]; A = [2001 2002 2001 2003 2003 2003 2004 2004 2004 2004 2004 2007; 1 ...

9일 전 | 1

| 수락됨

답변 있음
Convert Columns Arrays to numeric
...how can I know the data type of the columns? varfun(@class,combine) solution: load('data.mat') combine = [combine,rowfu...

9일 전 | 1

| 수락됨

답변 있음
Matrix dimensions must agree error in if loop
day = input('What day is today? -> ', 's'); lo = any(strcmpi(day,{'saturday','sunday'})); if lo disp(['Its ' day ' ! ...

9일 전 | 0

| 수락됨

답변 있음
How to solve the following exercise?
function out = find_neighbor(M,i,j) out = all(ismember(1:M(i,j)-1,M(i-1:i+1,j-1:j+1))); end

10일 전 | 1

| 수락됨

답변 있음
Collect matrix values by using a "for" loop
Let A - your array. out = reshape(A.',[],1);

10일 전 | 0

| 수락됨

답변 있음
How can I convert 2 column matrix to a cell array?

24일 전 | 0

답변 있음
find common elements from cell array and remove it
out = A(~ismember([A{:}],[B{:}]));

25일 전 | 0

| 수락됨

답변 있음
Adding values from columns 1:i for each column for a new matrix of the same size
Let A - your array (442 x 25) out = cumsum(A,2);

25일 전 | 0

| 수락됨

답변 있음
How to replace elements of matrix by elemts from array
out = x(NewV);

28일 전 | 0

답변 있음
Find the median row of a binary column and replace the column with just the median row
I = imread('line.png'); bw = im2double(rgb2gray(I)); [i,j] = find(bw); [n,g] = findgroups(j); idx = floor(splitapply(@medi...

28일 전 | 0

답변 있음
Extracting values from a cell array into new arrays
CC = cat(3,C{:}); [m,n,k] = size(CC); Z = permute(repmat(b,1,1,n),[1,3,2]); out = CC(sub2ind([m,n,k],Z(:,:,2),repmat(1:n,size...

28일 전 | 0

| 수락됨

답변 있음
How would I create a matrix from the following strings
T = readtable('Path\your\txt\file\ThinPlateNodes.txt'); T.Varend = str2double(regexp(T{:,end},'(\-)?\d+(\.\d+e\-\d+)?(?=\}\$)','...

29일 전 | 1

답변 있음
Finding Unique values for First Row of a Matrix
Let A - your array. output = A(1,:); for i = 2:numel(output) u = unique([output(1:i-1)';A(:,i)]); output(i) = u(i); ...

약 1달 전 | 0

| 수락됨

답변 있음
Index Exceeds Matrix Dimensions

약 1달 전 | 0

| 수락됨

답변 있음
Creating a new matrix based on the data from other two matrices
out = reshape([reshape(g1',2,[],2);reshape(g2',3,[],2)],[],2)'

약 1달 전 | 1

| 수락됨

답변 있음
How to normalize a vector considering both maximum and the sum of values?
Please run follow m - file: SN = 8700; Nmx = 9900; nmn = fzero(@(x)func1(x,Nmx,SN,A),-10000); [~,N] = func1(nmn,Nmx,SN,A);...

약 1달 전 | 0

답변 있음
Converting a cell array into a matrix of stipulated number of columns and rows
Let C - your cell array. if cells sizes are the same: out = reshape(cat(2,C{:}),[],4); if not the same: out = cell2mat(cel...

약 1달 전 | 1

| 수락됨

답변 있음
how to generate matrix with any size in same pattern
n = 5; out = full(spdiags(ones(n,1)*[1 -2 1],-1:1,n,n)); or out = zeros(n); out([2:n+1:end,n+1:n+1:end]) = 1; out(1:n+1:end...

약 1달 전 | 0

답변 있음
Mean of certain elements within a matrix
Here A - your array (m x 6) [m,n] = size(A); i = repmat((0:m-1)',1,n-1); i(:,end-1:end) = circshift(i(:,end-1:end),-1); i = ...

약 1달 전 | 0

답변 있음
Use of backslash while calculating the product of inverse of a matrix and another matrix
Maybe for "second way": xt = (D+omg*L)\((D*(1-omg)-omg*U)*xn+omg*((D+omg*L)\B));

약 2달 전 | 0

| 수락됨

답변 있음
How to code this formula?
function rgb = HSVtoRGB(H,S,V) n = numel(H); C = V.*S; X = C .* (1 - abs(mod(H/60,2) - 1)); A = [C, X, zeros...

약 2달 전 | 0

답변 있음
Vector output from a for loop
TMP = randi([-12,45],30,4); f = {@(x)0;@(x)x-9;@(x)1;@(x)3.33 - .083*x;@(x)0}; i = discretize(TMP,[-inf,9,10,28,40,inf]); o...

약 2달 전 | 0

답변 있음
How to create 2D matrix from 3D without a loop?
[n,m,k] = size(A); [i,j] = ndgrid(1:n,1:m); C = A(sub2ind([n,m,k],i,j,B);

약 2달 전 | 0

| 수락됨

답변 있음
Average of every nth value in a vector
Let A - your array 137255 x 1 n = numel(A); TT = timetable(A,'RowTimes',(0:n-1)'*saconds(.1)); out = retime(TT,'minutely','me...

약 2달 전 | 0