Resuelto


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

casi 11 años hace

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Enviada


PEEK
a simple evaluation monitor utility

más de 12 años hace | 1 descarga |

0.0 / 5

Resuelto


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

alrededor de 13 años hace

Resuelto


Generate pi using logarithm
Generate pi using logarithm

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


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

alrededor de 13 años hace

Resuelto


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

alrededor de 13 años hace

Cargar más