Réponse apportée
Problems running the code in Mac
Indexing into a char array using {} is not supported on any platform. a = 'abracadabra' a(5) % 'c' a{5} % error Perhaps your...

plus de 3 ans il y a | 0

Réponse apportée
Undefined function 'geomean' for input arguments of type 'double' in Matlab 2020
The geomean function is part of Statistics and Machine Learning Toolbox. Do you have this toolbox installed and licensed? You ca...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
unable to run the program becuase of matrix multiplication error, also need to add a 3d earth around which the plot of orbit displayed.
Get rid of these lines from your script. If you need to clear the Command Window, close all figures, or clear all variables and ...

plus de 3 ans il y a | 0

Réponse apportée
Looking for packages available for multiple imputation (for missing data) in Matlab
Does the fillmissing function provide the method or methods you want to use to fill the missing values in your data sets? If not...

plus de 3 ans il y a | 0

Réponse apportée
Why are some functions listed as not compatible with MATLAB Compiler, when they are in fact used and compilable in the Simulink Standard Library?
Some functions and functionality is supported with MATLAB Compiler but not Simulink Compiler. Some functions and functionality ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
The code works but it gives this warning. How to remove this warning?
Looking at the contents of the attached L2_Array1.m: textOfFile = readlines('https://www.mathworks.com/matlabcentral/answers/up...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
find the closest datetime
Let's make some sample dates and times within two-ish days of right now. n = 10; rightNow = datetime('now') A = rightNow + ho...

plus de 3 ans il y a | 1

Réponse apportée
Matlab HDL coder error: reptmat is not supported, but in the documentation it is.
There are different implementations of repmat for numeric arrays (the documentation to which you linked) and for fi arrays. Note...

plus de 3 ans il y a | 0

Réponse apportée
matlab -batch jobs are killed on Ubuntu without trace of reason
Are your jobs consuming a lot of memory? I'd check the syslog file to determine if the Out of Memory killer killed MATLAB to try...

plus de 3 ans il y a | 0

Réponse apportée
How can I plot my solutions in my phase portait?
You may be interested in specifying the OutputFcn option in your ODE solver call. The odephas2 function included in MATLAB may d...

plus de 3 ans il y a | 0

Réponse apportée
The MATLAB function to solve implicit equation
@John D'Errico posted how to solve this equation symbolically, if you don't have values for the various symbols used in the code...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Array not compatible error
For these types of errors, where data isn't the size you expected it to be, I'd use error breakpoints. Set an error breakpoint u...

plus de 3 ans il y a | 0

Réponse apportée
How do I pass input arguments to a compiled executable and define the output arguments that the user can see?
See this documentation page. Defining input arguments is relatively straightforward. For output arguments see the "Using a MATLA...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
For the very same code memory is not released after a "clear" on Ubuntu but is on Windows
I suspect that the Out of Memory Killer is what killed MATLAB on your Ubuntu machine. See this webpage for more information and ...

plus de 3 ans il y a | 0

Réponse apportée
How to run the 'matlab -batch ...' with a different Matlab version
Try launching the MATLAB executable directly in bin rather than the one in the $ARCH subdirectory under bin. "D:\Matlab\R2021b\...

plus de 3 ans il y a | 5

| A accepté

Réponse apportée
access matlab figures by opening them with a mouse while a matlab terminal application is still running
Because the program is running, after the user uses one of the menu options to make some plots that now exist in the working dir...

plus de 3 ans il y a | 0

Réponse apportée
How to do multiple divisions in order to generate another array?
All but two of your lines follow a pattern. I've commented the relevant lines out here so I can run code later in my answer. %{...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Assign a row vector to a row of an array using logical indexing to omit certain values
In many places in MATLAB, the values 0 and false can be used interchangeably. x1 = 5+0 x2 = 5+false Indexing is one of the ex...

plus de 3 ans il y a | 0

Réponse apportée
comparision of data with logic given as input
Can you dynamically create and operate on variables with numbered names like T1, T2, T3, etc.? Yes. Should you do this? The gen...

plus de 3 ans il y a | 0

Réponse apportée
I keep getting a "convenc" error. Line 88. Could be "varargin" missing argument? Not sure.
If you're calling the convenc function from Communications Toolbox, the section of that documentation page that describes the ms...

plus de 3 ans il y a | 0

Réponse apportée
How to access external variables in other workspace? (fmincon function)
Don't use global variables. Parameterize your nonlinear constraint function instead. If you define your constraint function as: ...

plus de 3 ans il y a | 0

Réponse apportée
Trend lines with moving average
My first thought would be to try using the Remove Trends Live Editor Task or the trenddecomp function.

plus de 3 ans il y a | 0

Réponse apportée
How can I randomly excuted for loops inside MAIN FOR LOOP instead of run them in ordered ?
Another possible solution to the problem, if you want to run a series of functions in a loop in a random order, is to use a cell...

plus de 3 ans il y a | 1

Réponse apportée
Can I call index of max function out and before the function ?
There's another problem with your code above and beyond what Walter described. If you want to call the max function inside your ...

plus de 3 ans il y a | 0

Réponse apportée
Find logical and (&&) for string array
That should work as long as the string arrays you're using in your comparisons are scalars. arrayX = "Left"; arrayY = "Right";...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
Index in position 1 is invalid. Array indices must be positive integers or logical values?
If you just want to be able to determine the mass for a specified identifier, I wouldn't use ismember in this case. I'd use a di...

plus de 3 ans il y a | 0

Réponse apportée
What is the answer of [(4 -2 ) /2 , 5 +6 , 7 , 8 ] ? Why does MATLAB output [1 5 6 7 8]?
See this documentation page for more information.

plus de 3 ans il y a | 0

Réponse apportée
Error: Reference to non-existent field 'A'. Changed between 2018 to 2022 versions?
Why is the specific text of the error message important for your application? If we had a typo in an error message and we corre...

plus de 3 ans il y a | 2

Réponse apportée
How to bubble sort incorporating deal function
There are a number of improvements I'd recommend you make to your code. close all; clear; clc; Don't use "close all; clear; cl...

plus de 3 ans il y a | 0

Réponse apportée
Change of properties of UI dynamic components (AppDesigner)
You don't appear to be storing the led array you created inside ApplyButtonPushed to any of the properties of your app, so it's ...

plus de 3 ans il y a | 0

| A accepté

Charger plus