Answered
I am supposed to create a single x value then inside the while loop use the x-value it to calculate a y value. Then save the x & y values in in a storage array as x increases
x5start = 0; stepsize5 = 20; x5end = 20; x5 = x5start; i = 1; while x5 <= x5end y5 = 2 .* (x5).^3 - (35 .* (x5)).^2 +...

4 years ago | 0

| accepted

Solved


Quaternions to Rotation Matrices
Given a matrix of Quaternions (along the rows), output a 3D matrix of Rotation Matrices.

4 years ago

Problem


Quaternions to Rotation Matrices
Given a matrix of Quaternions (along the rows), output a 3D matrix of Rotation Matrices.

4 years ago | 0 | 7 solvers

Solved


Rotation Matrix to Euler Angles
Given a rotation matrix, generate the Euler Angles as output [phi,theta,psi]. [phi is a rotation around X-axis, theta is rotatio...

4 years ago

Problem


Rotation Matrix to Euler Angles
Given a rotation matrix, generate the Euler Angles as output [phi,theta,psi]. [phi is a rotation around X-axis, theta is rotatio...

4 years ago | 0 | 8 solvers

Solved


Easy Sequences 70: Inflection Points of Binomial Product Function
Inflection points are points along the graph curve of a function, where the curvature of the curve changes from concave to conve...

4 years ago

Solved


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

4 years ago

Solved


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

4 years ago

Solved


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

4 years ago

Solved


Nearest integer
Use MATLAB help to find a suitable built-in function to approximate a given number to the nearest integer. For instance, 9.25 is...

4 years ago

Solved


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

4 years ago

Solved


Circle area
Calculate the area of a circle given its radius, r. For instance, if r =3.5, the answer should be approximately 38.48

4 years ago

Solved


Function substitution (2)
Evaluate the function for the given values of the variables N and t

4 years ago

Solved


Average of five numbers
Find the average of a set of five numbers {x1,x2,x3,x4,x5}

4 years ago

Solved


Remainder
Use MATLAB help to find a suitable built-in function to find the remainder of dividing any non-negative integer, x, by 7. For in...

4 years ago

Solved


Absolute value
Use MATLAB help to find a suitable built-in function to find the absolute (positive) value of a given number. For instance |−5| ...

4 years ago

Solved


Function substitution (1)
Evaluate the function for the given values of the variables N and t

4 years ago

Solved


Average of two numbers
Find the average of two numbers x1 and x2. For instance, if x1=7 and x2=19, the answer is 13.

4 years ago

Solved


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

4 years ago

Solved


Current through resistor
Three resistors (R2, R3, R4) are connected in parallel as shown in the figure. If this combination is connected in series with ...

4 years ago

Answered
function in a script file
a=5;b=10; if b>a c=executeFunction(a,b) end function c=executeFunction(a,b) c=b*3+a; end

4 years ago | 0

Answered
Combining two matrices in the correct original order
x=randi([1,128],128,128);%16,384 elements A=x(1:2:end,1:2:end,:);%4,096 elements B=x(2:2:end,2:2:end,:);%4,096 elements Combi...

4 years ago | 0

| accepted

Answered
argument in meshgrid - confused
Your domain for X is -1:1 and your domain for Y is 0:1. The first code choses the correct domains, the second assigns the same d...

4 years ago | 0

Solved


Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

4 years ago

Solved


Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

4 years ago

Solved


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

4 years ago

Solved


Easy Sequences 69: Radix Economy of Factorials
The Radix Economy of a number in a particular base is the number of digits needed to express it in that base, multiplied by the ...

4 years ago

Answered
Padding a vector with zeros
A = [1 2 0.3 2.4 20.3 1.111 6.3 7.1 44]; b=reshape(A,3,[]); b=[b;zeros(5,size(b,2))]; B=b(:)';

4 years ago | 0

| accepted

Answered
calculate mean each element in each cell in a cell array
A = {[1,2,3, 4] [5,6,7,8] [9,10,11,12] ; [4,3,2,1] [8,7,6,5] [12,11,10,9]}; B=mat2cell(mean(cell2mat(A)),1,length(A...

4 years ago | 0

| accepted

Answered
How do I get the average of every n rows for every column in a matrix?
a=randi(100,15,10); b=[]; n=5; for k=1:n:size(a,1)-n b=[b;mean(a(k:k+n-1,:))]; end

4 years ago | 1

| accepted

Load more