Answered
Delete values from two column vectors with same position
m=[A,B,C];%need to form matrix m(ismember(m(:,2),[8 9 10]),:)=[];%entire rows are deleted where 8,9,10 are in column 2 (B) m(i...

5 years ago | 0

| accepted

Solved


Output the sum of all the odd integers
Example: x = [ 1 2 3 4 5 6 7 8 9 ] y = 25

5 years ago

Answered
how to get the first index that satisfy my condition
j=find(abs(x)<=abs(.05*x(end)),1);%I think you need <=

5 years ago | 0

Answered
I need help creating a loop for an experiment
Number the videos produced each day starting at 1 and going to 1050 (21 days, 50 videos each day). videoPool=[]; K=[1,2,3,4,5,...

5 years ago | 0

| accepted

Answered
changed value of the specific matrix
yourMatrix(3000:3100)=1; yourMatrix(1500:1600)=1;

5 years ago | 0

| accepted

Answered
how to read data from excel file
I would use readmatrix data=readmatrix('data_JNP2014.csv');%this reads the data from csv into 316x6 matrix x1=data(:,[2 3 5]);...

5 years ago | 0

| accepted

Solved


Primes for Large N: 2^30, System Memory Limit
This Challenge is to further improve the "primes" function for speed/memory usage to the Limit of Cody Memory. The Matlab fun...

5 years ago

Solved


Primes Faster for Large N
This Challenge is to improve the "primes" function for speed. This may be accomplished by fixing memory usage. The Matlab fun...

5 years ago

Solved


How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...

5 years ago

Answered
How to change the plot on the matrix?
plot(matrix');

5 years ago | 0

| accepted

Answered
Unable to solve for a variable
What are you solving? You need to set z equal to something. z=sig_sigo_1-sig_on_sigo_2==0;%what do you want z to be?

5 years ago | 0

Answered
a simple vector to a matrix
X-[1 2 3]; Z=zeros(3,3*numel(X)); for k=1:numel(X) Z(9*k:-4:9*k-8)=X(k); end

5 years ago | 0

Solved


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

5 years ago

Solved


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

5 years ago

Solved


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

5 years ago

Solved


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

5 years ago

Solved


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

5 years ago

Solved


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0; 0...

5 years ago

Solved


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

5 years ago

Solved


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

5 years ago

Solved


Maximum sum from any 2 numbers with a variable number of inputs
Given a variable number of inputs, combine any 2 numbers from the inputs and output the maximum sum the combinations can generat...

5 years ago

Solved


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

5 years ago

Solved


Refresh your system of equations
Given square matrix, and solution vector, find the values of the variables Example: xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2...

5 years ago

Solved


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

5 years ago

Solved


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

5 years ago

Solved


Convert integer to base26 using letters
Write a function that converts a decimal integer to base26 using the letters of the english alphabet, i.e. 0->'a', 1->'b', 2->'c...

5 years ago

Solved


Convert from integer to binary
if true % decimalToBinaryVector(x) end

5 years ago

Solved


Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

5 years ago

Solved


Linear system solve
Solve a linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/linsolv1.pdf

5 years ago

Solved


Uniform binary crossover
Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

5 years ago

Load more