Answered
Plot 3d plot with different colors depending on the X and Y combination
See this page: https://www.mathworks.com/help/matlab/creating_plots/color-3-d-bars-by-height-1.html and this Answer: https://ww...

3 years ago | 0

Answered
MATLAB Onramp: Further practice section command window minimized
Will just add a comment that, in most course interactions, the command window is collapsed by design. This is because the intera...

3 years ago | 0

| accepted

Answered
I can't find system identification toolbox on apps even thought I have it installed, how can open it
You are installing a toolbox, with functions and apps that you can use in your code. It won't show up in the apps tab. However, ...

3 years ago | 0

Answered
Why am i getting error in wthresh? please help
I believe the issue is with your 2nd input. Valid inputs are 's' and 'h'. You are using 'soft'. y = linspace(-1,1,100); thr = ...

3 years ago | 0

Answered
Why is my code in Matlab Answers not colorful?
Not sure who you sent the email to, but please report this here: https://www.mathworks.com/support/contact_us.html

3 years ago | 1

Answered
Converting datenum to datetime when using writetable
You convert your datetimes to datenums, and then write those numbers to Excel, which is what you are seeing. Don't convert your...

3 years ago | 0

Answered
how to fix error message Invalid expression as When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
You need to properly end the line that creates your legend. %this legend('x_1', 'x_2', 'x_3', ... (list all the state variable...

3 years ago | 0

| accepted

Answered
I am unable to find Signal Builder block in Simulink .
The Signal Builder block has been removed. For more information on why you should migrate your models, see Migrate from Signal B...

3 years ago | 0

Answered
Why will uifigure not create a window in r2023a?
For technical support, please contact support.

3 years ago | 0

| accepted

Answered
I am getting errors on my plot of live data collected from a rover.
You are trying to index to an element in your variable that does not exist. Position 1 is your rows index, The error message is...

3 years ago | 0

Answered
How to add a line on the surface plot at a specific x value?
Repeat the same process you did for making your surface, just adjust the x values to be your desired values. Note, I think you...

3 years ago | 0

| accepted

Answered
Converting table data to datetime
You need a date to make it a datetime (it will automatically use today if you don't supply one). Perhaps you want to use duratio...

3 years ago | 0

| accepted

Answered
I cannot use interp2 as MATLAB tells me my grid arrays do not have an NDGRID structure, but I am still able to do a surface plot with no errors.
EDIT: fixing variable assignment per @Jon's observations An ndgrid means your data is regularly sampled in space. If you look a...

3 years ago | 1

| accepted

Answered
Fitting equation to data
Use the 'Options' input to adjust the StepTolerance property. Create your input using optimoptions.

3 years ago | 0

Answered
how to create this type of plot having two signals on one axis?
Just use plot with hold on. It looks like your X values determine how they align. x1=1:5; y1 = 5:-1:1; x2=5:9; y2 = 1:5; ...

3 years ago | 0

| accepted

Answered
image to matrix but the matrix is to much coloumns and rows
The size of your matrix will match the resolution of your image. If you want less rows/columns, you will need to reduce the reso...

3 years ago | 0

Answered
Can't view my courses in My account.
You do not need a license to take an Onramp course - just a MathWorks account. Which one are you trying to launch? Try navigati...

3 years ago | 0

Answered
How do i generate the "furnace" in simscape or simulink?
It appears that image is taken from the House Heating System example. You can open this model by running the following command ...

3 years ago | 0

Answered
making a working classifier image program, getting errors and unsure if its correct, please help
You might be interested in our Machine Learning for Computer Vision course, part of our Computer Vision for Engnineering and Sci...

3 years ago | 0

Answered
MATLAB example doesn't work on my r2019b version
That is because Simscape Batter wasn't introduced until R2022b. You will need to use at least R2022b to open this example.

3 years ago | 0

Answered
Why do I keep getting this error? Error using surf Z must be a matrix, not a scalar or vector.
Because your variable moment is a vector not a matrix. moment must be the same size as k and j (the ones resulting from your mes...

3 years ago | 0

Answered
Increasing Automation with FunctionsFunction Files(4/4) Vectorizing the Comparison Function
Have you noticed that there are 2 live scripts open? comparewithtol.mlx and isequaltol_vec.mlx. You need to switch to the compa...

3 years ago | 0

| accepted

Answered
Auto-populating a drop down menu in App Designer
You can find a list of the Drop Down properties you can access and modify here: https://www.mathworks.com/help/matlab/ref/matlab...

3 years ago | 0

| accepted

Answered
who do I keep getting this message? Index in position 1 is invalid. Array indices must be positive integers or logical values.
You cannot use decimal values to index a variable. Here, due to floating point arithmetic, k/kinc is not guaranteed to be an int...

3 years ago | 0

Answered
How to make part of my solid line dashed?
A data series (one line) can only have one line style. If you want 2 different line styles, you will need to split your series i...

3 years ago | 0

Answered
Cannot read frames from .avi video file
There is likely an issue with the codec. See this page: https://www.mathworks.com/help/matlab/import_export/supported-video-file...

3 years ago | 0

| accepted

Answered
How do you replace row names with a column?
No, there is not. You can rename the row names, but you cannot remove them from a table. T = readtable('test.xls') T.Propertie...

3 years ago | 0

Answered
My code is not producing the anticipated figure for a time, EKG signal plot
Your code is good. I think the issues is with your str2double conversion. It is unnecessary, since that data is already a double...

3 years ago | 0

| accepted

Answered
Hello all, please am solving naviers 2d for wind speed forecasting but am having error, Arrays have incompatible sizes for this operation. Error in navierstokes (line 31)
This error can occur when you try to subtract two arrays of differing size. [1 2] - [1 2 3]

3 years ago | 0

Answered
I am supposed to write a cod to show a given numebr in two elements ; power of 2 and muliple of 5 i.e: nu=2^x+5*y or nu=2*x-5*y
You have written a recursive function (a function that calls itself). Was that intentional? I would also suggest not using the ...

3 years ago | 1

Load more