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

10 dagen 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,...

10 dagen ago | 0

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

10 dagen 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]);...

10 dagen ago | 0

| accepted

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

11 dagen 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?

11 dagen 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

11 dagen 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 ...

12 dagen 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...

12 dagen 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]

12 dagen 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...

12 dagen ago

Solved


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

12 dagen ago

Solved


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

12 dagen 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]...

12 dagen 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

12 dagen 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...

13 dagen ago

Solved


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

13 dagen 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 ...

13 dagen 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

13 dagen 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...

13 dagen ago

Solved


Given a number find two variables
If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

13 dagen ago

Solved


compare strings
Given 2 strings and 3 actions (Insert,delete,replace) on characters. Find the difference between two strings. Example: str...

13 dagen ago

Solved


arrangement of symbols
There are n different symbols in which m symbols are identical (m<n). How many different arrangement can we make with these symb...

13 dagen ago

Solved


Cubic Integer Constrained Solution
Find an integral non-trivial solution (x,y,z ~=0) (x=0 or y=0 or z=0 are trivial) for the cubic equation 987,654,321x + 123,45...

13 dagen ago

Solved


Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...

13 dagen ago

Solved


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

13 dagen ago

Solved


Easy Sequences 31: N-N's Sequence
We define the N-N's Sequence, as the series of all positive integers in ascending order and with repetition, wherein any number ...

15 dagen ago

Answered
How do I implement this for loop calculation in direct matrix or vector calculation?
R=sum(diff(A).^2,'all');

15 dagen ago | 0

| accepted

Answered
Plot magnitude and phase plot
[A,B]=meshgrid(-20:20); g=(1+1i*B)./(1+1i*A); M=20*log10(abs(g)); P=angle(g); plot(M,P);

15 dagen ago | 1

| accepted

Answered
how can i solve this system on matlab?
syms v L x1 x2 x3 y1 y2 y3 eq1=v+L==1; eq2=x1*L+y1*v==.25; eq3=x2*L+y2*v==.45; eq4=x3*L+y3*v==.30; eq5=y1==2.7406*x1; eq6=...

15 dagen ago | 1

Load more