Answered
three-axle vehicle body model
The equations are self-explanatory. As one can see that the forces are computed from the acceleration and velocity components al...

5 years ago | 0

Answered
segment point cloud data into clusters | The input point cloud must be organized (M-by-N-by-3)
Probably, you'd need to generate meshes using meshgrid()

5 years ago | 0

| accepted

Answered
How to plot the polytope given by a system of inequalities
To get a surface plot, you had better use meshgrid() and interp3(). https://www.mathworks.com/help/matlab/ref/meshgrid.html?sea...

5 years ago | 0

Answered
Plotting/Scatter of m-by-n matrix versus time
It should work if you write your code, e.g.: t=1:12; G = randi([0, 13], 154, 12); plot(t, G, 'o--'), shg

5 years ago | 0

Answered
How can I get the laplace transform of piecewise function?
Use heaviside(). See this help doc: https://www.mathworks.com/help/symbolic/heaviside.html

5 years ago | 0

| accepted

Answered
How can I use data from .mat file into spline function?
Here is the corrected code: ... save('data.mat', 'x','y'); % Your variable names called x, y and you need to save them her...

5 years ago | 0

| accepted

Answered
How can I use data from .mat file into spline function?
If all the data of x, y are saved under X, Y names from ginput in a sequenctial order in DATA.mat file. You can load them and ...

5 years ago | 0

Answered
How to determine number of rows in an excel sheet without uploading it into matlab
Just to see the overall size without importing the data from a *.csv file, uiimport() can be used but this fcn is quite slow tho...

5 years ago | 0

Answered
Plotting several Polarplots below each other
Do you have any mathematical formulation depicting the relatioship between the ellipses and Z axis? If you do then that can be u...

5 years ago | 0

Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

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

5 years ago

Solved


Max of a Vector
Write a function to return the max of a vector

5 years ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

5 years ago

Solved


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

5 years ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5 years ago

Solved


04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

5 years ago

Solved


02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

5 years ago

Solved


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

5 years ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

5 years ago

Solved


Damping of Servomotors with Tachometer Feedback
In Control Engineering, servomotors with tachometer feedback can be modeled by the second order system K / [J*s^2 + (B + K*K...

5 years ago

Solved


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

5 years ago

Solved


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

5 years ago

Solved


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

5 years ago

Solved


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

5 years ago

Solved


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

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

5 years ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

5 years ago

Solved


03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

5 years ago

Answered
problem in the effect of aerodynamics
As it is, the vehicle body 3DOF block ([Simulation 3D Vehicle with Ground Following]) in Simulink does not include aerodynamics ...

5 years ago | 0

| accepted

Answered
Root finding and plotting
There are a couple of ways to find roots of this eqn: (1) ginput() --> graphical method, e.g.: [Roots, y] = ginput(3) % clic...

5 years ago | 1

Load more