Gelöst


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

fast 11 Jahre vor

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Gesendet


PEEK
a simple evaluation monitor utility

mehr als 12 Jahre vor | 1 Download |

0.0 / 5

Gelöst


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

fast 13 Jahre vor

Gelöst


Generate pi using logarithm
Generate pi using logarithm

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

fast 13 Jahre vor

Mehr laden