Answered
Index exceeds the number of array elements. Index must not exceed 0.
The error means your variable is empty. a = []; a(1)

3 years ago | 0

Answered
Index exceeds the number of array elements. Index must not exceed 1
This error means you are trying to index an element that does not exist in your variable. Here, your variables are ll scalars, b...

3 years ago | 0

| accepted

Answered
How to start using Mars program with Matlab
You can place the folder anywhere you want. You just need to add the folder and subfolders to your MATLAB Search Path. See this ...

3 years ago | 0

| accepted

Answered
Like to have input user command for cases
You could use a switch-case statement A case can be used for multiple criteria. switch x case {1,2,3} %code ...

3 years ago | 0

Answered
please, how can i make the plot on the x axis from 15 to 25 hertz to rest on the x axis. that is to make them start from zero. i have used detrend but, it is not working
This is likely due to the resolution of your data. The signal is not able to capture everything, so over time, the error accumul...

3 years ago | 0

| accepted

Answered
How to replace NaN values with 0 of a GRIDobject?
The TopoToolbox is not created by MathWorks. A quick look at the list of toolbox functions leads me to suggest looking into the...

3 years ago | 0

Answered
How to get sample datasets locally? [Documentation error?]
Beginning in R2023a, the product documentation is no longer installed by default (see here). The side effect of this is that som...

3 years ago | 1

| accepted

Answered
In AppDesigner, how to input a CSV file using a checkbox?
Looks like you might want to use uigetfile in the checkbox callback function.

3 years ago | 0

| accepted

Answered
3-D figure
Sure. Here's an eample of a cone along the Z axis. Use the 'FaceAlpha' name-value pair to adjust transparency: https://www.math...

3 years ago | 1

| accepted

Answered
MATLAB Online deleted the contents of my file and has no back up
The only option I can think of is to check the contents of your deleted files folder in MATLAB Drive: https://drive.matlab.com/...

3 years ago | 0

| accepted

Answered
Plot a Line of best fit onto a previously made graph that contains subplots
You must make the axes current first, then turn hold on. subplot(m,n,p) ... If axes exist in the specified position, then this...

3 years ago | 0

| accepted

Answered
As you can see in the script I made 2 plot commands. However, there is nothing shown on the graphs. The display results is accurate, but I would like to have the graphs shown.
It is likely the variable you are plotting is a scalar (only has one value). In order to see a line, you must plot at least 2 po...

3 years ago | 0

| accepted

Answered
Unrecognized function or variable splitAnomalyData Matlab 2023a
Do you have all the toolboxes required to run this example? You can see what is required in the top right of the example page: ...

3 years ago | 1

| accepted

Answered
Why does my imported geometry show only 1 face & 1 edge?
Found an explanation. From the Tip on the importGeometry page: Reconstruction from STL data is not precise and can result in a ...

3 years ago | 0

Answered
table to timetable conversion problems
You have only shared a subset of your data, so we are not able to reproduce the issue. However, I suspect what has happened is y...

3 years ago | 1

| accepted

Answered
MATLAB Professional Certification - Dates and Locations
On this page: https://www.mathworks.com/learn/training/certification.html Select the Certified MATLAB Professional tab and clic...

3 years ago | 1

Answered
xlsread is not reading the complete excel table when used in 2009b
The syntax you are using only returns numeric data. My first guess, then, is that your spreadsheet only contains numeric data in...

3 years ago | 0

| accepted

Answered
How can I convert an Array with row values to a binary Matrix?
Porabbly with sub2ind. A = [2 3 3 4 5 4 3]; M = zeros(length(A)); Col = 1:length(A); ind = sub2ind(size(M),A,Col); M(ind)...

3 years ago | 0

| accepted

Answered
Plotting a figure from a matrix
I would use digraph. A=[1 2; 2 3;2 4;3 5; 5 6; 6 7] ; G = digraph(A(:,1),A(:,2)); plot(G)

3 years ago | 1

Answered
Report generator how to repeat the first line of a large table on each pages comment repeter la ligne de titre d'un tableau sur toute les pages
I think you want to use RepeatAsHeaderRow. See here: https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.repeatasheaderrow-...

3 years ago | 0

Answered
Bug Reported Plotting Data
This is due to the data tip format in R2019b. You can update this. See this post: https://www.mathworks.com/matlabcentral/answer...

3 years ago | 2

| accepted

Answered
Read from Webcam in Simulink
Use the From Video Device block, which requires the Image Acquisition Toolbox. You can see some examples here: https://www.math...

3 years ago | 0

Answered
x axis label in plot
Create a vector of x values that are datetimes. Then plot using plot(x,y) syntax.

3 years ago | 0

| accepted

Answered
How to Open files dicom using my images data set, I have own function readimage
This sounds like a usecase for an image datastore. Use the datastore to point to your images, and then use the readimage or read...

3 years ago | 1

| accepted

Answered
update box with TextAeaValuechanged callback don't run
It looks like you have already defined a callback function for when the value of the text area is changed. Have you added any co...

3 years ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds. Index must not exceed 1.
Please share the full error message (all the red text). This error typically occurs when your vector is not the size you expect...

3 years ago | 0

Answered
Why noise_signal does not plot correctly? There are the problems in the code to calculate SNR and MSE value .What can I do?
You variable noisy_signal is a 2000x2000 array. When you plot it, you get 2000 lines, since each column is treated as a separate...

3 years ago | 0

| accepted

Answered
Arduino GIGA blocks in simulink.
See this answer: https://www.mathworks.com/matlabcentral/answers/1935144-arduino-giga-r1-compatibility#answer_1209129

3 years ago | 0

Answered
Can I extract the code of an .mlapp without opening App Designer?
I would suggest contacting support. They can likely help you recover the file. It would also be helpful for MathWorks to see how...

3 years ago | 1

Answered
Could anyone give me more information about this vergin of Matlab?
Here is a link to the R2018a documentation. Whatever information is avaiable for this release can be found there. https://www.m...

3 years ago | 0

Load more