A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

presque 11 ans il y a

Réponse apportée
How to order values within a cell array more efficiently??
The following should work regardless of the ordering of the two rows: [~,idx] = ismember(ratings(1,:),ratings(2,:)); ord...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
Approximate vertex cover problem
Assuming you've got an incidence matrix A with A(u,v) if there is an edge from u to v, then a random edge could be selected with...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I make the negative output values of the linprog optimization to be treated as if they was positive when optimizing a problem?
If you need to minimise something like abs(x), just replace x with y-z so your objective becomes to minimise y+z with y>=0 and z...

plus de 12 ans il y a | 1

Réponse apportée
2nd order ODE with variable coefficients
You'll need to rewrite the second-order ODE as a first-order vector ODE. Put y1=y, y2=y1', so y2'=y''. Try ode45, with f = ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Making fmincon display function argument at each iteration
The utility <http://www.mathworks.com/matlabcentral/fileexchange/44120-peek PEEK> on the file exchange can be used to tell you w...

plus de 12 ans il y a | 0

Réponse apportée
how plot complementary cumulative density function (CCDF) of data points?
If you have the stats toolbox: ecdf(data,'function','survivor') will plot the CCDF.

plus de 12 ans il y a | 1

Réponse apportée
probability of a run of k heads or more in N tosses of a fair coin N>>k
The method in the link you gave can be modified to avoid the need for arbitrary-precision integer arithmetic in calculating the ...

plus de 12 ans il y a | 0

Réponse apportée
Genetic Algorithm - Fitness function value differences...
An alternative way to record the evaluated points is with the utility <http://www.mathworks.com/matlabcentral/fileexchange/44120...

plus de 12 ans il y a | 0

Réponse apportée
how to output interval spacing from quad, quadl or quadgk?
The utility <http://www.mathworks.com.au/matlabcentral/fileexchange/44120-peek PEEK> on the file exchange is useful for this sor...

plus de 12 ans il y a | 0

A soumis


PEEK
a simple evaluation monitor utility

plus de 12 ans il y a | 1 téléchargement |

0.0 / 5

A résolu


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

presque 13 ans il y a

A résolu


Generate pi using logarithm
Generate pi using logarithm

presque 13 ans il y a

A résolu


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

presque 13 ans il y a

A résolu


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

presque 13 ans il y a

A résolu


select the primes of a vector
Find the prime numbers in a vector

presque 13 ans il y a

A résolu


Steal, Share, or Catch
You, I, and a few other characters are going to play a game of *Steal, Share or Catch*. We are going to play it 10,000 times vs...

presque 13 ans il y a

A résolu


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

presque 13 ans il y a

A résolu


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

presque 13 ans il y a

A résolu


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

presque 13 ans il y a

A résolu


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

presque 13 ans il y a

A résolu


Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

presque 13 ans il y a

A résolu


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

presque 13 ans il y a

A résolu


only input
Return the output without writing any code into the function.

presque 13 ans il y a

A résolu


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

presque 13 ans il y a

A résolu


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

presque 13 ans il y a

A résolu


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

presque 13 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

presque 13 ans il y a

A résolu


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

presque 13 ans il y a

A résolu


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

presque 13 ans il y a

Charger plus