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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Respondida
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\...

más de 3 años hace | 4

| aceptada

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

más de 3 años hace | 0

Respondida
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. %{...

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

Respondida
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: ...

más de 3 años hace | 0

Respondida
Trend lines with moving average
My first thought would be to try using the Remove Trends Live Editor Task or the trenddecomp function.

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 0

Respondida
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";...

más de 3 años hace | 2

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 2

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Respondida
What is the purpose of zero function?
The zeros function is used there to preallocate the array. Rather than having to find a new block of memory to store the results...

más de 3 años hace | 1

| aceptada

Respondida
invalid index in find function
There's no guarantee that the elements of x_axes (the points that you selected using ginput) are integer values. Therefore there...

más de 3 años hace | 0

| aceptada

Respondida
R2022B Update4 is not offered
Please see the accepted answer on this Answers post.

más de 3 años hace | 0

Respondida
I can not receive activation key
If you are using your educational institution's or your company's license please contact the person or group that administers yo...

más de 3 años hace | 1

Respondida
how extract table RowNames based on table elements
I'd use ismissing, to avoid the need to extract the whole contents of the table into a separate array. % a table as you describ...

más de 3 años hace | 0

Cargar más