Community Profile

photo

Asad (Mehrzad) Khoddam


Last seen: 1 giorno ago

UWM

351 total contributions since 2016

PhD Student at UWM

Contact

Asad (Mehrzad) Khoddam's Badges

  • 5-Star Galaxy Level 2
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Quiz Master
  • Knowledgeable Level 2
  • First Answer
  • Triathlon Participant
  • Speed Demon
  • Leader
  • Creator
  • Solver

View details...

Contributions in
View by

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

8 giorni ago

Solved


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

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

8 giorni ago

Answered
How to save each loop data?
You can make a vector of points as here: c=3e8; %speed of light u=0; uv=[]; yv=[]; while u<(c) y=1/(sqrt(1-((u^2)/...

8 giorni ago | 1

| accepted

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

8 giorni ago

Solved


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

8 giorni ago

Solved


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

8 giorni ago

Solved


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

8 giorni ago

Solved


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

8 giorni ago

Solved


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

8 giorni ago

Solved


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

8 giorni ago

Answered
How to solve 'vector must be the same length', 'functions behave unexpectedly' errors when graphing vector equation
in the first code, instead of x=3; use this one: x=3*ones(size(t));

8 giorni ago | 0

| accepted

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

9 giorni ago

Solved


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

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

9 giorni ago

Solved


Return area of square
Side of square=input=a Area=output=b

9 giorni ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

9 giorni ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

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

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

9 giorni ago

Answered
Working with complex numbers in the Symbolic Math Toolbox. Why does angle(A) returns atan2(sin(alpha),cos(alpha)) instead of just alpha?
if you want to find the numerical value of alpha, one solution is to use double function: double(angle(A))

9 giorni ago | 0

Answered
Can I save a MATLAB variable generated by a function into another MATLAB function?
You can use global variables by this line of code in all functions that share the same variables: global var1 var2 var3

9 giorni ago | 0

Answered
Factorial without the Command
Using only basic operations: function f = Factorial(n) % % initial value, 0! and 1! f = 1; if n > 1 for i=2:n ...

9 giorni ago | 0

Answered
Factorial without the Command
function f = Factorial(n) % % if n = 0 || n = 1 f = 1; elseif n >= 1 f = n * Factorial(n-1); end

10 giorni ago | 0

Answered
Loop for creating Submatrix
It should not be two nested loops. You can use one loop that increases a counter. You can use this code that doesn't need a loo...

10 giorni ago | 0

| accepted

Answered
How to enter a function into matlab
H/2*sigma.*cosh(k.*(h+z))./sinh(k.*h).*cos(k.*x-sigma.*t) H/2*sigma.^2.*cosh(k.*(h+z))./sinh(k.*h).*sin(k.*x-sigma.*t)

11 giorni ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 2 )
try this for i = j:size(A,1)

11 giorni ago | 0

Answered
Shadow on xy plane of line in plot3?
use surfc function but you need a grid in x and y directions

11 giorni ago | 0

Answered
Least squares regression to find coefficients
one solution is: [length(x) sum(x); sum(x) sum(x.^2)]\[sum(y) ; sum(x.*y)]

11 giorni ago | 0

Answered
How to plot this eqaution
t=0:.001:1.0; s4 = cos(80*pi*t-10*pi).*(t>0.5 && t<=1.0);

12 giorni ago | 1

| accepted

Load more