Community Profile

# Shlomo Geva

Last seen: 7 giorni ago Active since 2017

All

#### Content Feed

View by

how to get average of multiple rows and subtract from one group of average to another
Here is a solution to also take care of a number of rows that is not a multiple of your grouping (e.g. 30). I made up a matrix ...

7 mesi ago | 0

how to get average of multiple rows and subtract from one group of average to another
%% load the fille into memory with M = csvread(filename) %% loop around M, 30 rows at a time for i=1:30:si...

7 mesi ago | 0

How do I get MATLAB to compare strings in the same way as the strcmp(str1,str2) method in the ANSI C API?
function c = cstrcmp(a,b) % c style strcmp. No type checks, use only strings and char arrays. if strcmp(a,b) c=0; else ...

7 mesi ago | 0

Question

Critical code section inside parfor
With C++ one can define critical code section inside a parallel for. Is there a similar construct that can be used with Matla...

7 mesi ago | 2 answers | 0

### 2

k distinct combinations of size p without replacement
You can get this as follows: 1. First generate all binary vectors of size 2^N n=dec2bin(0:2^N-1)-'0'; in the examplll...

10 mesi ago | 0

Find multiple elements in an array.
function out = findMultipleElements(a,b) % Find multiple elements in an array % example: % a = [1 5 2 5 3 5 4 2...

10 mesi ago | 0

Question

Strange "correct" solution to Cody Problem 58. Tic Tac Toe FTW
I see this solution on the Cody solutions list. Solution 1949216 I am puzzled as to how this could possibly be rated as correc...

10 mesi ago | 1 answer | 0

### 1

Question

I have been using something similar to the Cody Challenge problem solving rig for many years (albeit more sophisticated) in teac...

10 mesi ago | 1 answer | 0

### 1

MATLAB in research projects
I have used MATLAB since 1992. My first go-to platform. Every time. I am a tragic devotee. As a general computational platform...

circa 2 anni ago | 0

Question

PARFOR not using all logical cores
I have seen this quastion asked many times over several years, and I was notable to find a satisfactory answer, let alone a solu...

circa 2 anni ago | 1 answer | 0

### 1

Question

How to generate a set of N mutually orthogonal (N being a power of 2) N-dimensional binary vectors [+1,-1]?
For instance: with N=2 we could have [1 1; 1 -1] with N=4, we could have [1 1 1 1; 1 1 -1 -1; 1 -1 1 -1; 1 -1 -1 1] How to ef...

oltre 3 anni ago | 3 answers | 1