Réponse apportée
t test ( not sure if my implementation is correct)
N=randi(100,5,4);%your matrix; R=randi(100,5,4);%your matrix h=1; for n=1:4 for r=1:4 H(h)=ttest(N(:,n),R(:,r));...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I load data from Excel file to Matlab in script and use the data loaded to calculate?
Use readmatrix or readtable. If you attach your spreadsheet we could help more.

plus de 3 ans il y a | 1

Réponse apportée
Greek character print in the command window, but not when I publish a script.
display(char(945)); display(char(946));

plus de 3 ans il y a | 0

Réponse apportée
how to use elements from array to sort data
Keep your data stored in matrices that you can index into. numdata = xlsread("res Data.xlsx"); Q=numdata(1:5,:); F=numdata(6:...

plus de 3 ans il y a | 1

Réponse apportée
How to create a function which takes one column of data as its input and another as its output
Just use the find function. find rng(1) A=randi(100,10,2) f=A(find(A(:,2)==88),1)

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Bessel Function Calculation in Matlab
You need to increase your k as z gets larger. n=sym(1); F(1)=n; for k=1:202 F(k+1)=F(k)*k; end J=zeros(1,60); for z=1:...

plus de 3 ans il y a | 2

A résolu


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

plus de 3 ans il y a

Réponse apportée
product between doubles 200*200
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));

plus de 3 ans il y a | 0

| A accepté

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

A résolu


Compute expulsions from the Kimberling shuffle

plus de 3 ans il y a

A résolu


Compute a row of the Kimberling shuffle

plus de 3 ans il y a

A résolu


Deduce the pattern behind the sequence

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

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

plus de 3 ans il y a | 0

Charger plus