Community Profile

mark li

Last seen: 3 mois il y a Actif depuis 2022

Programming Languages:
C++, C, MATLAB

All

Content Feed

Afficher par

A résolu

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

8 mois il y a

A résolu

Given a and b, return the sum a+b in c.

8 mois il y a

A résolu

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

8 mois il y a

A résolu

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

8 mois il y a

A résolu

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

8 mois il y a

A résolu

Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

8 mois il y a

A résolu

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

8 mois il y a

A résolu

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

8 mois il y a

A résolu

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

8 mois il y a

A résolu

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

8 mois il y a

A soumis

10 mois il y a | 1 téléchargement |

A répondu
how to save workspace variables with the same name they have in work space
Hello! There is a simple demo. %% %test data clear; PSD_a = 1; PSD_b = 2; PSD_c =2; a = 1; %% str_set = []; Save_nam...

10 mois il y a | 1

A répondu
How to plot variables with different array sizes?
You may : plot(t1,Y1,t2,Y2,t3,Y3) Otherwise, plot(t1,Y1) hold on plot(t2,Y2) plot(t3,Y3)

10 mois il y a | 1

A répondu
How to implement this logic in Simulink?
There is a simple demo:

10 mois il y a | 0

A répondu

10 mois il y a | 0

A répondu
How to Revolve a 2D Profile and Make it's 3D Plot
This is a example: x = [82,80,65,38,82]; y = [82,54,36,94,82]; x_zero = 35; theta = linspace(0,2*pi,100); X = []; Y ...

10 mois il y a | 0

| A accepté

A répondu
How to compile a GUI who call a script who call a Simulink model