Réponse apportée
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,...

plus de 3 ans il y a | 0

Réponse apportée
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

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Travelling Salesman Problem (TSP)
Find a short way through given points. This is the travelling salesman problem. But the solution should be a fast and small func...

plus de 3 ans il y a

A résolu


Locate image wells
A mathematical model of wells pumping groundwater near a boundary can be constructed using the method of images, which is also u...

plus de 3 ans il y a

A résolu


Determine if input is a Harshad number
In mathematics a harshad number (or Niven number) in a given number base is an integer that is divisible by the sum of its digit...

plus de 3 ans il y a

A résolu


Compute the largest number with a given integer complexity
Cody Problems 42831 and 42834 ask us to compute integer complexity, the smallest number of 1s needed to construct a number with ...

plus de 3 ans il y a

A résolu


Compute the Tetris sequence
In the Tetris sequence, which starts with a 1, the next term is the smallest positive integer not already in the sequence that h...

plus de 3 ans il y a

A résolu


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

plus de 3 ans il y a

A résolu


Easy Sequences 87: Perfect Power Modular Residue of a Nested Sum-product Function
For a positive integer , we define the function , as follows: ; and for . He...

plus de 3 ans il y a

A résolu


Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

plus de 3 ans il y a

A résolu


Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

plus de 3 ans il y a

A résolu


Harmonic series counting
The function takes a positive limit as input, And counts how many terms must be summed in the harmonic series: 1/1, 1/2, 1/3, ...

plus de 3 ans il y a

A résolu


01-01: 正弦波の生成
「MATLABで学ぶ実践画像・音声処理入門」のプログラム1-1 と同じ正弦波を、サンプリング周波数 10kHz で生成し、返却する関数を作成せよ。

plus de 3 ans il y a

A résolu


Compute the Lagarias Riemann Hypothesis sequence
Write a function that takes an input number and produces a sequence (i.e., all values up to and including the th value) compute...

plus de 3 ans il y a

A résolu


Solve an equation involving primes and fractions
Write a function to find pairs of primes and satisfying the equation where is an integer. The function should take a numbe...

plus de 3 ans il y a

A résolu


Easy Sequences 83: Digits of Powers of 3
This problem is a simpler version of 'Easy Sequences 82: Digits of Powers of 2'. Given integers and , we are asked to return th...

plus de 3 ans il y a

A résolu


Dyck words
A Dyck word can be considered as a string of n X's and n Y's arranged to have at least as many X's in an initial segment of the ...

plus de 3 ans il y a

A résolu


Easy Sequences 86: The "real" Hyperprimorials
In Easy Sequences 85, we define the hyperprimorial of , as a exponent ladder of primes numbers from the -th prime down to first ...

plus de 3 ans il y a

A résolu


Easy Sequences 85: Hyperprimorials
Given an integer , the primorial of , , is defined as product of all primes from to the -th prime. In other words, if is the ...

plus de 3 ans il y a

Réponse apportée
How to find two values in a 3D table?
B=[ 16 17 17 17 19 17 23 22 22 22 24 24 31 29 28 27 29 31 38 36 ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Correlation with two matrices
You could just manually do it yourself. A=randi(100,10);B=randi(100,10); M=mean(A);N=mean(B); r=zeros(size(A,2),size(B,2)); ...

plus de 3 ans il y a | 1

Réponse apportée
How to draw tangent plot?
fplot(@tan,[0,2*pi])

plus de 3 ans il y a | 0

Réponse apportée
Location of a value in a matrix
x=0:.5:20; f=find(x==9.5) x(f)

plus de 3 ans il y a | 0

Réponse apportée
ELEMENTS IN ODD COLUMNS AND ROWS
M=randi(100,10) out=imp_index(M) function out = imp_index(M) out=M(1:2:end,1:2:end); out=out(:)'; end

plus de 3 ans il y a | 1

Réponse apportée
Creating array based on highest values using for loop
x=zeros(1000,16); c=1; for i=Peaks x(:,c)=Reshaped_array(i:999+i,c); c=c+1; end

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
generating matrices from another matrix
x = [1,0,0,1,0,1]; d = diag(x); s(:,:,1)=d; for k=2:10 t=d;t(k)=1; s(:,:,k)=t'; end s

plus de 3 ans il y a | 0

Charger plus