Solved


Generate Tribonacci Sequence
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...

3 years ago

Answered
How do I create a scatter plot of every value combination of three vectors?
A = [0.5:2:12]; B = [0:10:60]; [a,b]=meshgrid(1:length(A),1:length(B)); scatter(A(a),B(b)) scatter3(A(a),B(b),A(a)+B(b))

3 years ago | 0

Answered
how to act on a probability
Just compare the array of probabilities of a dropped call to a rand uniform distribution array. mu=.85; sigma=.1; p=mu+sigma*...

3 years ago | 0

| accepted

Answered
How to create a 2D reverse matrix
a=[1 2 3; 4 5 6; 7 8 9]; reshape(flip(a(:)),size(a))

3 years ago | 0

Answered
Submatrices into a Structured Larger Matrix
Adjust as necessary. Need 105 3x3 matrices to fill described pattern above. I assume all A matrices are the same size (3x3). fo...

3 years ago | 0

Answered
Returning NaN after mean calculation?
function E_1 = part_2(A_0,n) n=1:n; S = (A_0.^n)./factorial(n); dnom = cumsum(S); E_1 = S./dnom; end

3 years ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
x0=0; xn=10; xh=.1; d=3; xv=x0:xh:xn; av=fa(xv,d); plot(xv,av) AV=@(xv,d)d*(xv.^2)-(2*abs(xv))-3;%with a simple function ...

3 years ago | 0

Solved


Taylor Series
You can use a Taylor series to approximate common functions. The Taylor series for sin(x) is Using only the first several te...

3 years ago

Answered
how can i verify this answer on matlab?
syms z; F=(z^-1+z^-2-z^-3)/(1+z^-1+z^-2+4*z^-3); simplify(F)

3 years ago | 0

Solved


Snow Accumulation and Structural Risks To Residential Properties
The density of snow depends on the amount of liquid water it contains: Dry Snow is about 50 kg/m^3 Wet Snow is about 200 kg/m^...

3 years ago

Solved


Find a subset that divides the vector into equal halves --- HARD MODE
This problem is the same as Ned Gulley's problem 660, but the input arrays will be larger. As in problem 660, given a vector ...

3 years ago

Solved


Partial Pressure of Water Vapor from Relative Humidity
Buck (1996, 1981) published the following constants for the saturation pressure of water*: 6.1121 (mb) The saturation pressur...

3 years ago

Solved


Air Mass to Star for an Observer at Mean Sea Level
Air mass is a measure of how much atmosphere light from a source above the atmosphere (eg sun, planet, star) has to travel throu...

3 years ago

Solved


Predict Cricket Stridulation Rate from Air Temperature
Stridulation is the process that creates a cricket's “chirp” by rubbing their wings or legs. According to the Old Farmer's Alma...

3 years ago

Solved


Pressure for a given Above Sea Level Altitude
For altitudes up to the stratosphere (around 11 km above mean sea level), the air pressure can be estimated from: with where...

3 years ago

Solved


Air Density from Temperature and Pressure
The density of air can be estimated from the product of molar mass and molar density: Write a function that finds the densi...

3 years ago

Solved


Molar Air Density from Temperature and Pressure
The molar density of air can be found from the Temperature and Pressure using the ideal gas law. where the Molar density STP ...

3 years ago

Solved


Find Air Temperature from Cricket Stridulation Rate
Stridulation is the process that creates a cricket's “chirp” by rubbing their wings or legs. According to the Old Farmer's Alma...

3 years ago

Solved


Calculate the Distance to Source of Lightning
Lightning discharge heats air rapidly with lightning channels reaching temperatures of up to 50,000 degrees Fahrenheit (which is...

3 years ago

Answered
How to Plot Compound Interest
P=5000;r=3.25; f=@(x)P*(1+r/100/365).^(365*x); x=1:30; plot(x,f(x))

3 years ago | 0

| accepted

Answered
omit rows of matrix based on a condition
Seems like there are more than just two rows. B=[0.25 0 0; 0.5 -4.91 -4.9; 0.75 -4.94 -4.96; 1 -4.985 -5; 1.25 -5 -5; 1....

3 years ago | 0

| accepted

Solved


Korselt's Criterion
A composite integer n (n>=2) divides b^n-b, i.e. mod(b^n-b,n)==0, for all integers b if and only if n is square-free (doesn't ha...

3 years ago

Answered
Can someone help me ?
figure;hold on; x=linspace(0,50,50); s=0;f=1000; y=linspace(s,f,50); plot(x,y,'LineWidth', 1.5); for k=1:71 x=x+50; ...

3 years ago | 0

Answered
Hello! How to make for loop for cycle calculation using previous coordinates to calculate next one, etc
H,d,A,B,E,F are all constant, therefore your could do all iterations at once. [x,y,z]=reflection(1.5,1.5,3,60,45,5) function...

3 years ago | 0

| accepted

Answered
Get total number of leap seconds relative to gps time
As long as the gps collection date is after 1 January 2017, then just subtract 18 seconds (37-19) see https://hpiers.obspm.fr/...

3 years ago | 0

Answered
Would you please tell me what do I have to fix in Binomial distribution code?
Note, factorial(30) will not be exact since it has more digits than floating point. The plot is constantly decreasing. for n = ...

3 years ago | 0

| accepted

Answered
Find where certain sequence of true/falses is placed inside a logical array
x=[false;false;true;true;true;true;true;false;true;true;true]'; f=strfind(x,[1 0 1]); result=zeros(size(x)); result(f)=1

3 years ago | 1

| accepted

Answered
fminsearch for a function f(x,y) = x^4 -3xy+2y^2
Always depends on the starting point and the steps during iterations f=@(x)x(1).^4 -3*x(1).*x(2)+2*x(2).^2; fminsearch(f,[0,0]...

3 years ago | 0

Solved


Sum of Consecutive Positive Integers Equals Product of Limiting Values
Determine m and n for the following equation: For example: 3 + 4 + 5 + 6 = 6*3 is the first occurance that satisfies the equat...

3 years ago

Problem


Sum of Consecutive Positive Integers Equals Product of Limiting Values
Determine m and n for the following equation: For example: 3 + 4 + 5 + 6 = 6*3 is the first occurance that satisfies the equat...

3 years ago | 0 | 4 solvers

Load more