Answered
I don't want to replace the existing file instead create a new audio file with the trimmed data, how do I achieve that?
Questions 1 and 4 are the same. As I stated previously, you need to use a different filename in your audiowrite code to avoid ov...

4 years ago | 0

| accepted

Answered
how can I change the projection of worldmap into cylindrical?
See this page: https://www.mathworks.com/help/map/change-map-projections-using-geoshow.html You can also look into the setm fu...

4 years ago | 0

| accepted

Answered
Index exceeds the number of array elements. Index must not exceed 0
Your if condition e(n)>UMB must never be true, hence peu stays an empty array (size zero). Later, when you try to index peu, you...

4 years ago | 0

Answered
how to clear axes in live edition
The live editor keeps using the same axes unless told otherwise. Here, your new plot is being added to the current axes, which i...

4 years ago | 0

Answered
geolimits equivalent for Matlab version 2015b
You may try using the 'MapLatLimit' and 'MapLonLimit' properties of axesm to crop your map.

4 years ago | 0

| accepted

Answered
How to write a MATLAB code for a 3 D surface graph of pressure, temperature and entropy of water?
Beside plot3 and scatter3, there are several ways to create 3D plots in MATLAB. Once you have created your data, if you need he...

4 years ago | 0

Answered
what are the wrong with this code??
Using a folder of example images that ships with MATLAB, I was able to run your code in R2021a once I updated the labelIDs to be...

4 years ago | 0

Answered
NEED URGENT HELP! I want to use the CWT and DWT, but I don't get any figure result.
Did you mean fs*(n-1)/n? n=1024; fs=1000; t=0:(1/fs):((n-1)/fs); f=0:fs/n:fs*(n-1)/n; y=sin(2*pi*60*t)+sin(2*pi*180*t)+sin(...

4 years ago | 0

Answered
Matlab AppDesigner error - too many output arguments?
Contact support

4 years ago | 0

Answered
Using 'getrect' on the main design window - App Designer
The getrect and recommended drawrectangle function only work with axes objects. The workaround may be to add an axes, and then d...

4 years ago | 0

Answered
Index exceeds array bounds.
We don't know what your variables it, Ns, wo, t, or Im_correct are, so we can't say for certain, but here are some thoughts. It...

4 years ago | 0

Answered
Why does trained model work in MATLAB 2021 but not 2020?
I get the error message in R2020b, R2021a, R2021b, and R2022a prerelease. If it is working in R2021a for you, do you have any a...

4 years ago | 0

Answered
How to change the Fontname when interpreter is changed to 'Latex'
See this answer: https://www.mathworks.com/matlabcentral/answers/546197-how-can-i-apply-font-options-when-using-the-latex-inter...

4 years ago | 0

Answered
Multiple lines one side of big curly bracket in live editor latex equation
MATLAB does not support all LaTeX libraries. I therefore find it easiest to create LaTeX expressions interactively in a live scr...

4 years ago | 2

Answered
How to substitute one equation into another ?
Use the subs function. See this example from the documentation page: Eliminate scalar variables from an equation by using the v...

4 years ago | 1

| accepted

Answered
GUI - ODE problem, can someone please help me solve an ode system using guide?
Consider variable scope. Your odefcn function does not have a variable handles passed in as input, nor created inside it. Theref...

4 years ago | 0

Answered
How to crop and resize image using matlab GUI (app designer) ?
See the following documentation pages: https://www.mathworks.com/help/matlab/creating_guis/create-a-simple-app-or-gui-using-app...

4 years ago | 0

Answered
Why am I getting "Index in position 2 exceeds array bounds. Index must not exceed 1"
You haven't shared the complete error message, so I'm not sure what line is causing the error, but it is most likely this one: ...

4 years ago | 0

| accepted

Answered
Index exceeds the number of array elements. Index must not exceed 1.
The issue is that eq60, eq63 and eq64 are returning 8x1 vectors. That adds 24 items to your ouput vector. Plus the scalar values...

4 years ago | 0

Answered
How can I retrieve the size of each tile box (height or width) so that I can place text in the right proportion as the values of each tiledplot vary?
If you capture the tiledlayout object, you can query the position of the axes in each tile, with returns the position as [left b...

4 years ago | 0

Answered
Interpolation(?) of 3D array
Why not use interp2? Using your code above, the calculation would be [Lon,Lat] = meshgrid(H_londata,H_latdata); SP_coi = inte...

4 years ago | 0

Answered
How do I display my mean values in GUIDE?
You need to use a component like label or edit_field that can display text to the user, and then set that component's text/value...

4 years ago | 0

Answered
there is an error which is not being corrected. Only its taking x as an input variable.
I don't think you want to use str2sym to declare your symbolic variables. It is used to evaluate string representing symbolic ex...

4 years ago | 0

Answered
plot satellite visibility on global scale
Those figures look like they could be created using the worldmap function

4 years ago | 0

Answered
Writetimetable does not work with large amounts of data
I would suggest contacting support. They are in the best position to investigate this issue and provide a solution if there is o...

4 years ago | 0

Answered
Figure 3D rotation does not work in App Designer
The view3d function is a community-created function. You might consider asking your question in the discussion for that file exc...

4 years ago | 0

Answered
How to fix the clear button in GUI
Following up on what Rik said, the following is how you would create the callback for Clear in app designer. % Button pushed fu...

4 years ago | 0

Answered
absorption of alcohol in the body with MATLAB Model
You have 2 equations, so your odefunc should be returning 2 values, which it does. However, you have defined 6 initial condition...

4 years ago | 0

Answered
sending array as grouping variable in gscatter
Your grouping variable can be any of the following: categorical vector | logical vector | numeric vector | character array | st...

4 years ago | 0

Answered
Matlab R2021b crashes when plotting
Please contact support.

4 years ago | 0

Load more