Solved


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

10 years ago

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

12 years ago | 2

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 1

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

Submitted


PEEK
a simple evaluation monitor utility

12 years ago | 1 download |

0.0 / 5

Solved


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

12 years ago

Solved


Generate pi using logarithm
Generate pi using logarithm

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

12 years ago

Load more