Respondida
Curve Fitting Toolbox Error: This expression has no coefficients or non-scalar coefficients.
The function 57857*((sin(5*30e-6*(sin(x)/450e-9)*pi))/sin(30e-6*(sin(x)/450e-9)*pi))^2*sinc((sin(x)/450e-9)*pi*5e-6)^2 e.g. is n...

12 meses hace | 0

Respondida
How do I change the size of xq while using the interp1 function as supervision?
You're interpolating the spectra data at temperatures in xq. Based on what you showed of size(controle) I assume xq has 326 elem...

12 meses hace | 0

| aceptada

Respondida
I want to avoid fractions in my answer to the null space
Use the numden and lcm functions to identify what you need to multiply the fractions by to make them whole numbers.

alrededor de 1 año hace | 1

Respondida
Saving a grid of lines to be recalled using findobj and assigning to an app property
Just because the handles exist doesn't mean they're valid. They can hold handles to deleted objects. Let's make a figure handle....

alrededor de 1 año hace | 0

Respondida
sine wave plot
If you're using release R2018b or later, rather than computing sin(pi*something), I recommend using the sinpi function (and ther...

alrededor de 1 año hace | 0

Respondida
One plot line is messing up the two other plot lines/points
In your second plot, the Y axis limits are 0 and 4. Your data points for your first and third lines all have Y coordinates in th...

alrededor de 1 año hace | 1

Respondida
[coeffA,scoreA,latentA] = pca(X);
If you truly do not need the second output (but do need the first and third) tell MATLAB to ignore the second output when you ca...

alrededor de 1 año hace | 0

| aceptada

Respondida
run function from command line
I'm not 100% sure this option was available in releases R2017a or R2017b, but I'm pretty sure it was. Use the -sd startup option...

alrededor de 1 año hace | 0

Respondida
Class Unexpected Behaviour with Properties and Type Casting
Shouldn't this code produce at least a runtime error when meh is assigned to a cell object instead of forcing this automatic typ...

alrededor de 1 año hace | 1

| aceptada

Respondida
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Do the Editor/Debugger Saving settings not satisfy your needs?

alrededor de 1 año hace | 0

Respondida
I have a code but am unable to use if conditions with matrix value
You haven't told us what you're doing or why Star Strider's suggestion didn't work for your application, so we can't offer speci...

alrededor de 1 año hace | 0

Respondida
MATLAB R2025a on Windows 11 [background open after closed]
If the processes you're seeing remaining open are matlabwindowhelper processes, see Bug Report 3724070. Follow the bug report an...

alrededor de 1 año hace | 0

Respondida
Why do I receive MathWorks Licensing Error 5?
I recommend checking with the administrators of your license to ensure that Simscape Multibody is included in your license and t...

alrededor de 1 año hace | 0

| aceptada

Respondida
Warning Suppression Request Ignored MATLAB R2017b
Try running the following command then executing the code or instructions that issue the warning. dbstop if warning Once MATLA...

alrededor de 1 año hace | 0

Respondida
A more efficient way to do this calculation
Take a look at the discretize function.

alrededor de 1 año hace | 2

Respondida
Do you have a HECVAT & VPAT for the MATLAB software?
If you go to the end of this page and click on Trust Center, you can download the VPAT for MATLAB, Simulink, MATLAB Online, and/...

alrededor de 1 año hace | 0

Respondida
Which toolbox includes hPre6GCPU?
The Appendix section at the end of that example states that hPre6GCPU is a helper function. Copy the command to open the example...

alrededor de 1 año hace | 1

| aceptada

Respondida
When I use MATLAB's export image feature, I name the file "untietled" and all other names, MATLAB crashes and automatically quits
If you look at the crash log file, do you see a reference to graphics_context.dll in it? If so, try updating to release R2023a U...

alrededor de 1 año hace | 0

Respondida
How can I distribute a single sprintf input to multiple formatting operators?
You can specify which of the data inputs you want each "section" of the format specifier input you want to use by adding a numbe...

alrededor de 1 año hace | 0

| aceptada

Respondida
Does MATLAB work on any Cloud Computing Service?
It is possible to use MATLAB in the cloud, as described on this page on the MathWorks website. If the information on the Resour...

alrededor de 1 año hace | 0

Respondida
Enforcing naming conventions with a custom codeAnalyzerConfiguration.json
Compare the documentation page you linked (which is for the current release, which right now is release R2025a) with the version...

alrededor de 1 año hace | 2

| aceptada

Respondida
Compatability of runtime engine with matlab gui application
In general, you probably don't want to use the path function with an input argument.[*] That changes the MATLAB search path to w...

alrededor de 1 año hace | 0

| aceptada

Respondida
reading CSV files with multiple rows of strings and multiple rows of floats
All the data in a variable in a table must be the same type. You can't have one where the first four rows are text and the next ...

alrededor de 1 año hace | 0

Respondida
Use string to define variable
Can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The general consensus ...

alrededor de 1 año hace | 1

Respondida
Documented name-value argument not recognized
The problem is that the documentation of publish is wrong. The correct name-value argument is outputFolder. The problem is that...

alrededor de 1 año hace | 0

| aceptada

Respondida
Plotting a 2D array of values as discrete squares without interpolation
load('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1838126/StressData.mat') whos If I understand what you're...

alrededor de 1 año hace | 0

Respondida
speeding up the data analysis
What does the Profiler indicate is the section of code that takes the most time? Does the Code Analyzer app or the code analyze...

alrededor de 1 año hace | 0

| aceptada

Respondida
Problem with comments in XML files
Do you need the comments to be imported? If not, and if upgrading to release R2020b or later is an option, consider using readst...

alrededor de 1 año hace | 0

Respondida
Toolbox compatibility with licenses from different years
Are you specifically asking about the license manager or are you asking about using a combination of products from different rel...

alrededor de 1 año hace | 2

| aceptada

Respondida
how to find elements between two values
If you're using release R2014b or later, use the isbetween function. x = randi([-10 10], 5, 5) xinrange = isbetween(x, -5, 5) ...

alrededor de 1 año hace | 0

Cargar más