Respondida
How can I get all properties of some object of UIAXES app designer
If I have a book sitting on a table and I touch the cover of the book, have I touched the table? No. So things that are concerne...

20 días hace | 0

Respondida
Custom exponential fit doesn't seem to work
Consider specifying the Normalize name-value pair argument in your fit call to normalize the X data. In my example below I'll us...

20 días hace | 0

Respondida
apparently the command rmoutliers does not do the job correctly
Rather than going directly to rmoutliers I recommend using isoutlier to detect the outliers then process the resulting logical a...

20 días hace | 0

| aceptada

Respondida
Failed to "dot indexing" the data from uitable
The Data property of a uitable can contain different types of data, as stated on this documentation page. If you had stored a ta...

24 días hace | 1

| aceptada

Respondida
How to modify the built-in 'fetch' function so that it can select columns flexibly?
s = {'Larry', 'Curly', 'and Moe'} s2 = strjoin(s, ', ')

24 días hace | 0

| aceptada

Respondida
griddedInterpolant bug with Matlab Coder in R2022b
The first error you received is not a bug. The fact that griddedInterpolant requires that the sample points be vectors rather th...

24 días hace | 0

Respondida
I want to count (tally) the number of occurrences of any generated integer over a 156 for-loop.
Are all these values integer values? If so consider using histcounts with the 'integers' BinMethod. values = randi(100, [200, 5...

25 días hace | 0

Respondida
Incorrect Inputformat for datetime function
If I look at the documentation for the Format property on the datetime documentation page, two of the "Examples of Common Format...

25 días hace | 1

Respondida
Finding the mean value of a set.
Original data: x= [1 2 4 6 2 7 8 4 5 7 8 9] Reshape it into a 3-by-whatever matrix. I'll let MATLAB figure out what "whatever"...

25 días hace | 0

Respondida
How do I replace -1.0000e+30 with NaN?
Since I'm guessing -1e30 is an outlier in your data you could use filloutliers. I'll use a slightly smaller outlier value for th...

25 días hace | 0

Respondida
Query regarding update to MATLAB R2022b.
That is correct. Generally there are enough significant changes between releases that some sort of "incremental update" like you...

25 días hace | 0

| aceptada

Respondida
Variables from diagram do not exist after run
The histogram handle h and its properties are tied to the existence of the histogram object in the figure window. If that histog...

25 días hace | 0

Respondida
is it possible to make this code shorter?
One function that will be of use to you is cumsum. This will let you avoid variables with numbered names like r1, r2, r3, etc. I...

25 días hace | 0

Respondida
Sim() error in MATLAB app designer
y=sim('app.var',p); %estimted This tries to call a version of the sim function that accepts a char vector as the first input...

26 días hace | 0

Respondida
Working around Global Variables and Pointers
Since each Particle and each Room represent a unique physical object they should probably be handle classes with handle semantic...

26 días hace | 0

| aceptada

Respondida
Test of whether matrix is Symmetric Positive Definite is giving wrong result when matrix is not symmetric
From the chol documentation page: "If A is nonsymmetric , then chol treats the matrix as symmetric and uses only the diagonal an...

26 días hace | 1

| aceptada

Respondida
Error using * Inner matrix dimensions must agree.
F = 13; T = 0.1; n = (0:T:1); xn = cos(2*pi*F*n); t = linspace(-0.5, 1.5, 500); Now let's look at the terms you're multiply...

26 días hace | 0

Respondida
Want to purchase the license for System composer
If you have general sales questions or would like a quote for this product please contact the Sales department using the Contact...

26 días hace | 0

Respondida
solve a linear system of equations with several unknown parameters
syms f11 f12 f21 f22 g1 g2 V=[2 1 1; 4 1 1; 4 2 1; 2 2 1] ; F=[f11 f21;f12 f22;g1 g2]; U=[1...

26 días hace | 0

| aceptada

Respondida
how to interpolate outside the domain of x?
From Mark Twain's "Life on the Mississippi", a quote on the potential danger of extrapolation. "In the space of one hundred and...

26 días hace | 1

Respondida
Index exceeds the number of array elements. Index must not exceed 620757.
What is element number 11 of the following vector? x = 1:10 The answer to the question is "it doesn't exist." In situations wh...

26 días hace | 0

Respondida
Indexing a column, how to make it return corresponding column data instead of sample number?
Once you've computed those indices, you can use them to index into your array. voltage(inds, 1) But in this case you don't nee...

27 días hace | 0

Respondida
Draw a line
If you're using release R2018b or later you can use the xline or yline functions.

27 días hace | 0

Respondida
How to keep false as false, and not as zero
All the data in the array V must be the same data type. If x is not a logical array, the logical data will be converted to the c...

27 días hace | 1

Respondida
Standalone Compiler Load ImageDataStore
See the first Tip on this documentation page. If there's no reference in the code itself that tells MATLAB Compiler it needs to ...

27 días hace | 0

Respondida
How to add a constant value above a matrix in following code?
A = magic(4) B = [repmat(-999, 2, width(A)); A; repmat(Inf, 3, width(A))] This pads 2 rows containing the constant...

27 días hace | 0

Respondida
How to decide, number or character!
If for whatever reason (homework?) you cannot just use isstrprop like @Stephen23 suggested, look at the documentation page for t...

27 días hace | 1

Respondida
how to find the index of same datetime value
Truncate the datetime to the previous whole second then compare. d = datetime('now'); d.Format = d.Format + ".SSSSSS" d2 = da...

27 días hace | 1

Respondida
Efficient construction of positive and negative matrix
Instead of creating a very large binary matrix in order to extract a handful of columns, why not use bitget? x = (0:7).' b = [...

28 días hace | 0

Respondida
How to define a constant inside the 'fittype' function?
Yes, using the 'problem' name-value pair argument to both fittype and fit. See the "Create Fit Options and Fit Type Before Fitt...

28 días hace | 0

Cargar más