Respondida
Making a graph with multiple different colors
Just use plot with a legend data = readmatrix('project.xlsx') varNames = ["Number","Amplitude","PSD","Recurrance_Rate","Recurr...

más de 3 años hace | 1

Respondida
This code performs heat transfer.
Your code is written expecting Fo and Bi to be a vectors, but they are scalars, so only ever has 1 element. You get this error a...

más de 3 años hace | 0

Respondida
Make a presentation with actxserver without displaying the presentation
See this example: https://www.mathworks.com/matlabcentral/answers/1793235-axes-box-incompletely-copied-to-clipboard#answer_10408...

más de 3 años hace | 1

Respondida
Close PowerPoint with actxserver
I think something like this should do it. h = actxserver('PowerPoint.Application') h.Quit If not, you could try this. invoke...

más de 3 años hace | 0

| aceptada

Respondida
Error using readtable after R2023a update
The error has nothing to do with your version of MATLAB. You wrote your code expecting it to load multiple files, and now the nu...

más de 3 años hace | 0

Respondida
Using groupsummary with Floating Number of Columns to Analyze
There is nothing wrong with your first code snippet. The error is simply telling you that your table does not have a variable (c...

más de 3 años hace | 1

| aceptada

Respondida
Hello, facing a problem on running first part of the program showing the given error ; i also add the 2nd part of this program and 2nd para and errors too.
The current error is that you cannot compare using '==' with a cell. The solution is likely as simple as using curly braces inst...

más de 3 años hace | 0

| aceptada

Respondida
How to find the index of string column in a table?
First comment - none of your table variables are strings. They are cell arrays of character vectors. That may matter depending h...

más de 3 años hace | 2

| aceptada

Respondida
Is it possible to reconstruct the signal wave after you done the whole fft function by using the ifft?
To get the original signal back, zero out the frequencies in z, not abz. Here's your code with a few changes added % EDIT: load...

más de 3 años hace | 0

| aceptada

Respondida
Different Colors in plot and legend
Legends take their linespec from the line object they correspond to. They are assigned in the same order they are plotted unless...

más de 3 años hace | 0

| aceptada

Respondida
Reading data from csv with non uniform formatting
I would use readtable with the settings to 'omitrow' when data is missing. T = readtable('sample.csv','MissingRule','omitrow')

más de 3 años hace | 0

| aceptada

Respondida
Updating a graph by changing which column of a matrix is being plotted to create an animation.
You may be interested in the animatedline function. I would probably do this by creating the first plot outside the for loop, t...

más de 3 años hace | 0

| aceptada

Respondida
Index in position 2 exceeds array bounds. Index must not exceed 1. Error in case00 (line 91) P(i) = P(i) + V(i)* V(k)*(G(i,k)*cos(del(i)-del(k)) + B(i,k)*sin(del(
Position 2 refers to your column index. The only variable in that line that is indexing columns is G. You are trying to access ...

más de 3 años hace | 0

| aceptada

Respondida
Using Switch/Case to assign values
I suspect the error is not occuring in the lines of code you have shared, but later on in another function when you try to use e...

más de 3 años hace | 0

| aceptada

Respondida
How to make contents of a row as the name of the variables of a data table?
To be variable names, your row must either contain character arrays or strings. See here. You assign the names using the syntax...

más de 3 años hace | 0

| aceptada

Respondida
Bandpass Filter Not Filtering Signal
Filters have transition regions. The likely reason is that your filter steepness is not high enough to both pass a 30 Hz signal ...

más de 3 años hace | 0

| aceptada

Respondida
How do I add lines on a scatter graph?
A scatter plot is just markers, no line. You need to use the plot function instead. Also, you only need to turn 'hold on' once...

más de 3 años hace | 0

Respondida
I am getting an error in ode45
It's helpful if you also share the error you are getting. In this case, the error is stating that your odefun must return a co...

más de 3 años hace | 0

| aceptada

Respondida
split the job problem
Did you read the warning message? You need to remove the spaces in your folder names.

más de 3 años hace | 0

Respondida
Why is NaN returned when I have all necessary input data?
Because no peaks were identified in your signal. It would appear the setting in findpeaks are not appropriate for your signal. ...

más de 3 años hace | 0

Respondida
TOOLBOX FOR ANATLYSIS OF FLEXURAL ISOSTASY
Here's where my googling led me: https://pubs.geoscienceworld.org/gsa/geosphere/article/13/5/1555/353716/Toolbox-for-Analysis-o...

más de 3 años hace | 0

Respondida
Why I got an error in "plot(X1,sqrt(2*g*X1)*tanh(sqrt(2*g*X1)/(2*L)*t),'o')" in the following code??
There is no error in your code. Just a warning because you are plotting imaginary numbers.

más de 3 años hace | 0

Respondida
I have a problem regarding an Index because it exceeds array bounds.
I suspect X is not the size you think it is. Since your error is saying that the max number of rows is 37, it appears that perha...

más de 3 años hace | 0

Respondida
How to avoid horizontal shifts after applying GroupByColor on boxcharts?
Typically, groups of boxplots share the same x value (see here and here). So what is happening is MATLAB is making room for one ...

más de 3 años hace | 0

Respondida
Error: Custom function fitting in MATLAB
data2fit2(:) and model_data(:) and weights4scaling do not all have the same size. A = rand(3) B = rand(2,1) % Your error A-B...

más de 3 años hace | 0

| aceptada

Respondida
how can I process certien frames from a video?
How are you reading in your frames? Are you using VideoReader? I haven't tried it, but following the examples on the linked pa...

más de 3 años hace | 0

Respondida
Change UTC settings in Matlab Grader
If you are creating a MATLAB Grader course (i.e. hosted at grader.mathworks.com), you can set your timezone in the Edit Course s...

más de 3 años hace | 1

| aceptada

Respondida
Seeking help to list all Yticks
You need to set yticks first, then assign a label for each tick. Something like this (updated code a little). data = readtabl...

más de 3 años hace | 0

| aceptada

Respondida
How can I access a record of the Command Window using MATLAB Grader?
One workaround could be to write an assessment test that calls the functions using evalc. This captures the command window outpu...

más de 3 años hace | 0

| aceptada

Respondida
Importing data from an Excel file with multiple tabs
Use the 'Sheet' name-value pair to indicate which sheet to read the data from. Documented here: https://www.mathworks.com/help/m...

más de 3 años hace | 1

| aceptada

Cargar más