![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/8629368_1523552027458_DEF.jpg)
Mustafa Abu-Mallouh
Followers: 0 Following: 0
Feeds
已回答
How can I get a variable name to include a string of text?
Instead of defining the variable name with text (as you mentioned, bad practice), would you be able to use a structure instead? ...
How can I get a variable name to include a string of text?
Instead of defining the variable name with text (as you mentioned, bad practice), would you be able to use a structure instead? ...
2 years 前 | 1
已回答
Create a plot for a loop
Use the 'hold on' command after your plot command, this will put all of your plots on the same axes hold on
Create a plot for a loop
Use the 'hold on' command after your plot command, this will put all of your plots on the same axes hold on
2 years 前 | 0
已解决
Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...
4 years 前
已解决
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
4 years 前
已解决
Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...
4 years 前
已解决
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...
4 years 前
已解决
Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...
4 years 前
已解决
Solve a System of Linear Equations
*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...
4 years 前
已解决
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,....
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
4 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
4 years 前
已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
4 years 前
已解决
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:...
4 years 前
已回答
Two ways of iterating a vector
In MATLAB, the for loop iterates over columns. When you define item as Choices, you're defining it as a single column. Change yo...
Two ways of iterating a vector
In MATLAB, the for loop iterates over columns. When you define item as Choices, you're defining it as a single column. Change yo...
4 years 前 | 0
| 已接受
已回答
getting the middle value of two curves ??
If you're looking for a line that is equidistant from original y and line through y values for any given x value, you can take t...
getting the middle value of two curves ??
If you're looking for a line that is equidistant from original y and line through y values for any given x value, you can take t...
4 years 前 | 0
| 已接受
已回答
Help - Smoothing surf plot, reduce surf detail and speed up performance
Have you tried taking a look at the shading function? Specifically, it sounds like you are looking for the interpolation featur...
Help - Smoothing surf plot, reduce surf detail and speed up performance
Have you tried taking a look at the shading function? Specifically, it sounds like you are looking for the interpolation featur...
4 years 前 | 0
| 已接受
已回答
Disable automatic Data Tips
There are a few ways to go about this. To do this for individual plots, you can use the disableDefaultInteractivity command as b...
Disable automatic Data Tips
There are a few ways to go about this. To do this for individual plots, you can use the disableDefaultInteractivity command as b...
4 years 前 | 2
| 已接受
已回答
How to plot a graph with 2 Y axis of different scale in Matlab 2015?
For MATLAB R2015_, take a look at the plotyy function. That should be what you are looking for. Beginning with R2016a, you wo...
How to plot a graph with 2 Y axis of different scale in Matlab 2015?
For MATLAB R2015_, take a look at the plotyy function. That should be what you are looking for. Beginning with R2016a, you wo...
5 years 前 | 0
| 已接受
已回答
Need help with plotting accelerometer readings from MPU6050 + Arduino.
Write a loop that updates a dataset with new data pulled from the sensor every iteration. Then, plot the updated dataset on the ...
Need help with plotting accelerometer readings from MPU6050 + Arduino.
Write a loop that updates a dataset with new data pulled from the sensor every iteration. Then, plot the updated dataset on the ...
5 years 前 | 0
已回答
interface mpu6050 with matlab
Take a look here to learn about interfacing MATLAB with I2C devices such as the MPU6050: https://www.mathworks.com/help/support...
interface mpu6050 with matlab
Take a look here to learn about interfacing MATLAB with I2C devices such as the MPU6050: https://www.mathworks.com/help/support...
5 years 前 | 2
已回答
Need help with storing live data from sensors into array
If you want to store the values in each row, call out that you want the values to take over all columns of "Gyro". See below: i...
Need help with storing live data from sensors into array
If you want to store the values in each row, call out that you want the values to take over all columns of "Gyro". See below: i...
5 years 前 | 0
| 已接受
提问
Converting 2 8 bit integers into a 16 bit?
I am pulling data from an MPU6050 accelerometer using an Arduino uno and the outputs from the device are 2 8 bit integers. Here ...
5 years 前 | 1 个回答 | 1