Respondida
Read data and transfer comma to dot with detectImportOptions
I would use readmatrix and specify the DecimalSeparator. d_lops = readmatrix('trial.txt','DecimalSeparator',',')

más de 3 años hace | 1

| aceptada

Respondida
What is the meaning of x=x(:).'?
x=magic(5) x(:) x=x(:).'

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

Respondida
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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Cargar más