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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 2

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

Answered
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')

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

Load more