A résolu


peta to nano (x-ray)
for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

presque 4 ans il y a

A résolu


Dice roll - lateral faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

presque 4 ans il y a

Réponse apportée
how can I plot this function?
t = linspace(-5,5,1000); N = 1000;n=1:N; an = (100*n*pi.*(-1).^(n+1).*(1000-121*n.^2*pi^2))/(((1000-121*n.^2*pi^2).^2 + (1320...

presque 4 ans il y a | 0

A résolu


Easy Sequences 78: Trailing Zeros of Factorial Numbers at any Base
Given an integer and a number base , write a function that calculates the number of trailing zeros of the factorial of when wr...

presque 4 ans il y a

Réponse apportée
nonlinear equations system with a changing parameter
A =@(x,T)3.8e-4./T./(0.4-2.*x).^3; B =@(x,T) 5e7.*(0.83-1.154.*x+1.7e-5.*T.*(log(A(x,T))+3.912))./(1-(0.2308-1.154.*x).*(0.6+1....

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Generate all permutation or possibilities
x='locate'; p=[];order=3; n=nchoosek(1:length(x),order); for k=1:size(n,1) p=[p;perms(n(k,:))]; end x(p)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to plot 2d graph with various variables?
I just generated example matrices for x and y. x-rows are specific thurst for various c-values, y-rows are fuel consumption valu...

presque 4 ans il y a | 0

Réponse apportée
How to build a circularly symmetric matrix from a vector
[x,y]=meshgrid(0:.05:100); z=sqrt((x-50).^2+(y-50).^2); Z=(z-25)/25; Z(z>50)=nan; contour(x,y,Z,'FaceColor','flat') colorma...

presque 4 ans il y a | 0

Réponse apportée
How to extract entire rows based on values placed in a single column in a matrix?
H = array2table(randi(10,100, 33)); f=find(H{:,33}>4); f=f(diff(f)>1);%removes consecutive rows >4 for k=1:length(f) c{k...

presque 4 ans il y a | 1

Réponse apportée
how to count words in a cell array
ca = {{'Let it go'} {'Let it go'} { 'Can''t hold it back anymore'}} for i = 1:length(ca) a=ca{i}; a=strsplit(a{1},' '...

presque 4 ans il y a | 0

Réponse apportée
how to remove an entire column in a cell array
ca = {'Name','Test1','Test2','Test3','Final'; 'A', 70 , 80 , 100, 99; 'B', 30 , 90, 95, 90; 'C', 100, 70, 8...

presque 4 ans il y a | 0

Réponse apportée
Need help on a problem
You need a while loop. x=input('Enter an even integer: '); while mod(x,2)==1 x=input(sprintf('%.1f is not an even integer...

presque 4 ans il y a | 0

A résolu


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

presque 4 ans il y a

A résolu


Find the magnetic field around the wire

presque 4 ans il y a

A résolu


Number Puzzle - 097

presque 4 ans il y a

A résolu


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

presque 4 ans il y a

Réponse apportée
Question about to reconduct [for loop statement] to the code using vectorization
format long s=sum(1./(2*(0:2:500)+1)-1./(2*(1:2:501)+1))

presque 4 ans il y a | 0

| A accepté

A résolu


Number Puzzle - 098

presque 4 ans il y a

A résolu


Mandelbrot Number Test [Real+Imaginary]
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

presque 4 ans il y a

Réponse apportée
How do I assign different variable names for different files?
Something like this should work. It would be better to place all the files into a single matrix and use indexing. for i=1:10 ...

presque 4 ans il y a | 0

A résolu


Create a matrix from a cell
In this problem , you must convert a cell into a matrix and pad each cell with NaN. *Example 1:* If you have the input...

presque 4 ans il y a

A résolu


Identify Ruth-Aaron numbers
After Hank Aaron hit his 715th home run and passed Babe Ruth’s total of 714, Carl Pomerance noticed that the union of the prime ...

presque 4 ans il y a

A résolu


calculate interest saved because of reduction of interest rate
calculate interest saved because of a reduction of interest rate per year (Assuming No leap year) Currently, in India, rate o...

presque 4 ans il y a

A résolu


Find the magnetic field in sollinoid

presque 4 ans il y a

A résolu


Size of this cup?
The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

presque 4 ans il y a

A résolu


An asteroid and a spacecraft
&#128640 Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian ...

presque 4 ans il y a

A résolu


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

presque 4 ans il y a

A résolu


Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

presque 4 ans il y a

A résolu


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

presque 4 ans il y a

A résolu


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

presque 4 ans il y a

Charger plus