Community Profile

photo

Anh Mai


Last seen: 2 years ago Active since 2021

Statistics

All
  • Thankful Level 3
  • Solver

View badges

Content Feed

View by

Question


Plot function in matlab
Hi all, I would like to plot a graph with x axis as below. Is there any syntax that I can use to set it up? Thank you all.

2 years ago | 2 answers | 0

2

answers

Question


Too many open files. Close files to prevent MATLAB instability.
Below is part of a code that I ran. It show this error while ii reaches 1949. Too many open files. Close files to prevent MATL...

2 years ago | 1 answer | 0

1

answer

Question


Plot a matrix and assign properties for each column
Hi all; I am trying to find a shorter way to plot a matrix with 3 columns. I dont know how to assign the properties for each li...

2 years ago | 1 answer | 0

1

answer

Question


Plot 3D shape with grid cell
Can we plot some 3D like this using MATLAB? I will only need to enter XYZ to get the 3D shape of XYZ with the grid cells as th...

2 years ago | 1 answer | 0

1

answer

Question


How to use logical indexing for slices of a 3D matrix
Hi guys, I am trying to set value for different page of 3D matrix based on 2D matrix logical command. domain=rand(4,4,4); dom...

2 years ago | 1 answer | 0

1

answer

Question


How to document the input from Matlab into the file
Hi all, I have a code that allow user to enter multiple inputs via 'For' loop. However, I usually don't remember the inputs un...

2 years ago | 1 answer | 0

1

answer

Question


Draw circle and ellipse in matrix
Hi all, I am using the following code to draw a circle in a given matrix. However, it only works for a squared matrix, if I chan...

2 years ago | 2 answers | 0

2

answers

Question


Assign values for different layers of a 3D matrix
Hi all; I am trying to create a 3D domain, for example a parking lot with 100x100x10 size. Each element of the matrix represent...

2 years ago | 0 answers | 0

0

answers

Question


Set value for elements within a polygon
Hi all, I am new to Matlab and trying to solve a problem with polygon. I want to create a random 2-D matrix, let's say 100 by...

2 years ago | 2 answers | 0

2

answers

Solved


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

3 years ago

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

3 years ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

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

3 years ago

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

3 years ago

Solved


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

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

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

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

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

3 years ago