Réponse apportée
Efficient way to reshape data
data = [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ...

presque 4 ans il y a | 0

| A accepté

A résolu


Easy Sequences 79: Trailing Zeros of Fibonorial Numbers at any Base
The fibonorial of an integer is defined as follows: where: is the -th Fibonacci number ( and for ). I...

presque 4 ans il y a

A résolu


Construct a "diagAdiag" matrix
Construct a matrix whose elements begin from 1 and end at n^2 with the order of arrangement as shown below: For: n = 4 ...

presque 4 ans il y a

A résolu


Cumulative minimum of an array
Find the cumulative minimum of an array without using the built-in function <http://www.mathworks.com/help/matlab/ref/cummin.htm...

presque 4 ans il y a

A résolu


Cumulative maximum of an array
Find the cumulative maximum of an array without using the built-in function cummax (and a few others). Your function should act ...

presque 4 ans il y a

A résolu


love is an n-letter word
Given a list of *N words*, return the *N-letter word* (choosing one letter from each word) with the property of having the least...

presque 4 ans il y a

A résolu


Create a recurrence matrix for a vector of data
In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

presque 4 ans il y a

Réponse apportée
Angle between two 3D vectors
I don't see anything wrong. I assume you are using a loop. st_direction =[0.6320;0.7308;0.2579]; A =[-0.8903 -0.6071 -0.7...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to solve a function with uknown parameter with bisection method
x=13.61015;y=13257; f=@(p)(x^3+p.^(2*x^2)-10)*sin(x)-y; p=fzero(f,1) P=1.01:.00001:1.03; plot(P,f(P))%plot shows zero crossi...

presque 4 ans il y a | 0

A résolu


Convolution Power
Create the convolution-power vector from initial vector _x_ and power _n_. In other words, similar to the scalar case, raising ...

presque 4 ans il y a

A résolu


does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

presque 4 ans il y a

Réponse apportée
Coding and ploting of a serie
t= 0:0.001:1; n=1:5; a=[0.05282 -0.00909 -0.02733 0.02509 -0.00268]; b=[-0.04866 -0.0104 0.002598 0.02111 -0.01372]; w=8.48...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How I Code the limit integration??
f=@(x).5*exp(-.2*x).*sin(10*pi*x); I=integral(f,0,1)

presque 4 ans il y a | 0

Réponse apportée
sums with for loop
n=1:502; s=sum((-1).^(n+1)./(2*n-1))

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Input or put a large array of numbers into a function
x='locate';prob=[.1 .18 .02 .4 .08 .22]; p=[];order=3; n=nchoosek(1:length(x),order); for k=1:size(n,1) p=[p;perms(n(k,:...

presque 4 ans il y a | 0

| A accepté

A résolu


String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

presque 4 ans il y a

A résolu


Find the outlier in a set of samples
Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

presque 4 ans il y a

Réponse apportée
How to merge matrix in a loop?
A=randi(10,4,3) B=randi(10,5,3) C=randi(10,6,3) D=randi(10,7,3) N=2; newMatrix=generateMatrix(A,B,C,D,N) function ne...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
for loop through matrix index
Your sizes can be different, store in cell array. for i = 1:length(lc) S{i} = new_ch(max([lc-pre_stim,1]):min([lc+(post_st...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to do type II double integration on matlab
Use symbolic integration syms x y f=x^2; int(int(f,x,0,acos(y)),y,0,1) double(ans)

presque 4 ans il y a | 1

| A accepté

Réponse apportée
if i have a function( [y]=ax+b, and i want to plot two lines that derive from the same function in the same graph. how to do so?
y=@(x)2*x+5; Y=@(x)x+7; x=-10:.1:10; plot(x,y(x),x,Y(x))

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Find the rate of change of data over specific increments of time
data = readtable('TSLA_STOCK.csv'); idx=find(diff(month(data.Date))); monthlyClose=data.Close(idx); ROV=diff(monthlyClose)./m...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How do I make an entire row in a table NaN?
T(isOff,:) = {NaN};%does this work?

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Need Help for the rest of this coding
function [ABrow, BAcol, FirstHalfA_LastHalfB] = vectorFun(A, B) ABrow = [A,B']; BAcol = flip(ABrow)'; FirstHalfA_LastHalfB = ...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
Producing 100 prime number in a vector
p=(2:1:600); p(isprime(p)) primes(600)%better and faster

presque 4 ans il y a | 3

| A accepté

Réponse apportée
Select range of rows and store them
Use of cell array for storage incase the sizes are not equal. If the sizes will always be the same, you could store in 3D-matrix...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
please guide me how to call a function in matlab codes
Function runs fine. File='sunrise.jpg'; ImageProcessing(File) function ImageProcessing(File) % Read the Image ...

presque 4 ans il y a | 0

Réponse apportée
Change certain values in an array to a word
Not sure why you want a mixed array of numbers and strings (not a good idea). idx=~ismember(T,[-2 -10 -30 2 10 30])&PP~=0;%logi...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Count the number of double in the the rows of a table
loop through your table C=zeros(size(yourTable,1),1); for k=1:size(yourTable,1) c=0; for m=1:size(yourTable,2) ...

presque 4 ans il y a | 0

| A accepté

A résolu


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

presque 4 ans il y a

Charger plus