Solved


Inner product of two vectors
Find the inner product of two vectors.

5 months ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

5 months ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

5 months ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 months ago

Answered
how to learn mil,sil and hil tool testing in real time example
A good start is always mathworks website. Find the link in the answer here.

5 months ago | 0

Answered
Couple ODE System not enough Input arguments, Why?
You should use @ symbol before the functions in your bvp4c call. Now you have another error, good luck solving it :D hint: what ...

5 months ago | 1

Answered
How to draw the letter phi on matlab?
Here are bunch of greek characters and how you can put them in a string/character: sprintf('%c ', 910:1000) phi = sprintf('%c'...

5 months ago | 0

Answered
Can I see code changes in the editor window?
You can right click the .m file on Matlab's 'Current Folder' view. There under the 'Source Control' you have options to 'Compare...

5 months ago | 0

Answered
Could anyone tell me what it means in the code(xfer1(i) = xfer(5,1))?
So from the context, it seems like 'xfer' is the complex value of your transfer function at a particular 'w', it is a 5x5 matrix...

5 months ago | 2

| accepted

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

5 months ago

Solved


Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

5 months ago

Solved


Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...

5 months ago

Answered
How to plot 3-D bode from the derived transfer function?
Here is one way: % undamped system where w defines the natural frequency and s is the % s-domain frequency grid variable sys ...

5 months ago | 0

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

5 months ago

Solved


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

5 months ago

Solved


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

5 months ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

6 months ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

6 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

6 months ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6 months ago

Answered
Display of nodal values of a matrix
You can use patch and text functions: nrRow = 4; % number of rows nrCol = 6; % number of columns recW = 0.5;% rectangle wid...

6 months ago | 0

Solved


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

6 months ago

Answered
Two sets of data with two date ranges and y-axis values
Something like this maybe: % create dummy time and data vectors t1 = datetime(2013,11,1,8,0,0); % define random start of time ...

6 months ago | 0

Answered
How to write theta - theta bar as a axis label
scatter(1:10,rand(1,10) , "Filled"); grid on xlabel('$\theta$ - $\bar{\theta}$','interpreter', 'latex')

6 months ago | 1

| accepted

Answered
Plotting functions of more than one variable, f(x,y)
A simple code: y = -20:0.001:20; % define y y(y==0) = []; % remove y == 0 for to prevent division by zero in x2 equation x1...

6 months ago | 0

Answered
How to plot multiple saved figures as .fig into a single figure?
Check this answer, I think it will be helpful for you.

6 months ago | 0

| accepted

Answered
How to calculate the difference error between Runge-Kutta Order 4 Method and euler method?
You can add a 'eul' function for euler integration and take the norm of the difference between the resulting outputs. clear all...

6 months ago | 0

| accepted

Answered
Assemble Global Stiffness Matrix
I think this is what you are looking for. You can extend the logic in a better way if you have more than 3 nodes. % create rand...

6 months ago | 1

Answered
Add a red line on the graph
If you want to put a vertical line on an x value, you can also use plot(0:0.01:2*pi,sin(0:0.01:2*pi)) % random plot xline(3,'r...

6 months ago | 0

Answered
Good day, I need help in building a reference signal from an ISO Specification. I have tried "create signal app"; however, it does not help much.
Something like this maybe clc tInit = 2; % initial Ub duration tFin = 2; % final Ub duration tr = 0.2; t6 = 0.4; t7 = 0.7;...

6 months ago | 1

| accepted

Load more