Resuelto


Sequence problem
find the nth term of the sequence: 790 1303 2033 ____ 4366 6095

más de 3 años hace

Respondida
product between doubles 200*200
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));

más de 3 años hace | 0

| aceptada

Resuelto


Repeat a string (not a character array)
True string are a relatively recent addition to MATLAB, first having been available in R2016. Strings contrast with character ar...

más de 3 años hace

Resuelto


Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

más de 3 años hace

Resuelto


Generate Hadamard Matrix
In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are e...

más de 3 años hace

Respondida
How to make a 'case' go over each element in a vector ?
tcue = TIMES+floor(NS)-0.5;

más de 3 años hace | 0

Respondida
Randomize vector avoiding consecutive values
leftSides = [1,3,5]; leftPos_trials = repmat(leftSides,1,14); idx=randperm(42); while any(diff(leftPos_trials(idx))==0) ...

más de 3 años hace | 0

Respondida
Iteration over for loop using a vector
n_trial = 12; n_probe =7; longer_array = [1:84]; for trial = 1:n_trial for probe = 1:n_probe longer_array((trial...

más de 3 años hace | 0

| aceptada

Resuelto


Compute expulsions from the Kimberling shuffle

más de 3 años hace

Resuelto


Compute a row of the Kimberling shuffle

más de 3 años hace

Resuelto


Deduce the pattern behind the sequence

más de 3 años hace

Resuelto


Compute the area of the shoemaker’s knife
A shape resembling a shoemaker’s knife is constructed from a semicircle with diameter with two semicircular “bites” of diameter...

más de 3 años hace

Resuelto


Find patterns in subprime Fibonacci sequences
Lots of Cody problems involve Fibonacci and Collatz sequences. Fibonacci sequences start with two numbers, and later terms are c...

más de 3 años hace

Resuelto


Hermite Polynomials
Problem 1304 deals with Hermite polynomial of the physicist's type. In this problem, Return the n-th Hermite polynomial of the ...

más de 3 años hace

Resuelto


About jokes (and compression)
An argument can be made about jokes. The shorter they are, the funnier. Further explained here: https://en.wikipedia.org/wiki/Hu...

más de 3 años hace

Resuelto


Counting Permutations
In the permutations of the numbers 1 to n, count the number of permutations in which exactly m elements are greater than the pre...

más de 3 años hace

Resuelto


Play with array Min-Max
An array is provided. For example, a= [ 2,1,11,4,5,13] Create an array from a like this way, out= [ 1,11,2,13,4,5] ➢ 1st take...

más de 3 años hace

Resuelto


An array is given that contains the marks. Find out the highest 3 marks
An array is given that contains the marks received by a group of students in their class test. Find out the highest 3 marks rec...

más de 3 años hace

Resuelto


Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...

más de 3 años hace

Resuelto


An array is given. Find the unique elements of the array. [keep the sequence unchanged]
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...

más de 3 años hace

Resuelto


Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …

más de 3 años hace

Resuelto


Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.

más de 3 años hace

Respondida
Professor needs specific color for bar graph, but the hex code for the color is not working.
bar(1,10,'FaceColor','#18453B')%use FaceColor

más de 3 años hace | 0

Respondida
I am learning still and i have no idea how to write 8y''' - y' = cos(20t) + sin(2t) in matlab
Your boundary condition was not provided. [t,y] = ode45(@vdp1,[0 1],[0; 0; 0]); subplot(3,1,1); plot(t,y(:,1)); subplot(3,1,...

más de 3 años hace | 0

Respondida
How to convert categorical data to double with unique rows
a=readtable('Book1.xlsx'); b=zeros(size(a)); b(ismember(a.Vertical_Steering,'Limbo'))=6

más de 3 años hace | 1

| aceptada

Respondida
Matrix manipulation / if else loops
Misunderstood you previously. m = [0 0 0; 1 0 0; 1 1 0; 1 0 0; 1 0 0; 1 1 1; 0 1 1; 0 1 1; 1 1 1; 1 1 0; 1 1 0; 1 0 0; 1 1 0; 1...

más de 3 años hace | 0

| aceptada

Respondida
How I find four or five colunms with distict rows from a table
First convert your table into a matrix using table2array() A=randi(100,115,64); k=nchoosek(1:64,5);%all combinations of 5 colu...

más de 3 años hace | 0

Resuelto


Compute the unitary totient of a number
The totient function , the subject of Cody Problems 656 and 50182, gives the number of integers smaller than that are relativel...

más de 3 años hace

Resuelto


Easy Sequences 84: Digits of Powers of 5
OEIS sequence #A008566, deals with the following series: This sequence is the digits of powers of 5 listed si...

más de 3 años hace

Cargar más