답변 있음
Long term support of ActiveX
See this documentation page for more information. If you have use cases that would not be satisfied by the recommendations on th...

7일 전 | 0

답변 있음
Calculating the area of a plot, e.g convhull
Consider using an alphaShape instead of a convex hull since your shape isn't convex.

8일 전 | 0

답변 있음
Assign Value to a Specific Position
Take a look at the two-output form of the max function. That should provide you enough information to complete that task.

8일 전 | 0

답변 있음
finding nonzero elements in matrix
Use implicit expansion. A = [0 1 1; 0 0 1; 1 1 1]; R = (1:size(A, 1)).'; B = A.*R

8일 전 | 1

답변 있음
support for Variable fonts
You can customize the fonts MATLAB uses by following the instructions on this documentation page.

11일 전 | 1

| 수락됨

답변 있음
A class to simulate missing arguments in function calls
So you want your function to be able to accept 0, 1, 2, 3, or 4 input arguments? In that case you probably want varargin. funct...

11일 전 | 0

답변 있음
Writing function for fliping vectors
Your function fails to satisfy the requirements of your question in several ways. Let's look at the first two sentences. Wr...

11일 전 | 1

답변 있음
How create a list of like this A{1}, A{2}, A{3}, A{4},... etc.?
If you already have a cell array A, use: A{:} to create a comma-separated list from A. If you're trying to create the cell ar...

12일 전 | 0

답변 있음
managing two variables in sum function
Use element-wise operations to create a matrix of data to sum then call sum with a dimension input. [c, r] = meshgrid(1:5, 1:6)...

12일 전 | 0

답변 있음
what is coder.gpu.kernelfun;
This function was introduced in release R2017b in GPU Coder. You've indicated in the Release information on this question that y...

12일 전 | 1

| 수락됨

답변 있음
Compute the difference matix between a marix and another matrix in MATLAB
You can eliminate one of your loops using the vecnorm function. >> vecnorm(A-B(1, :), 2, 2).^2 ans = 4 25 85

12일 전 | 0

답변 있음
help me ...cos and sin value not correct ! whay
Line 1 is completely unnecessary, since line 2 overwrites those symbolic variables with numeric values. I'm assuming your trotx...

12일 전 | 1

| 수락됨

답변 있음
increasing values midway of an array for theta (using atan2();)
Remember is that atan2 returns values in the closed interval [-pi, pi] so if you go from a y that is just barely positive to one...

12일 전 | 0

답변 있음
When will Matlab 2020a officially be released?
Most likely "in the March timeframe" as stated on this page.

12일 전 | 0

답변 있음
Script Skips a portion of code
If length(Daily) is less than 4, the result of the expression 4:length(Daily) will be empty and so the body of that loop will no...

12일 전 | 0

| 수락됨

답변 있음
How do I combine data from seperate tables into one table with seperate columns
Consider converting these table arrays into timetable arrays. If you do you can synchronize them all to a common time basis. See...

13일 전 | 0

답변 있음
str2num results
From the documentation page for str2num: "In addition, str2num uses the eval function, which can cause unintended side effects w...

13일 전 | 0

답변 있음
Array Indexing in a for loop
Part 1: when one of the quantities you're multiplying is a scalar, the * and .* operators are equivalent. x = magic(4) y1 = 2*...

13일 전 | 1

| 수락됨

답변 있음
deep learning tool box
Prior to being renamed in release R2018b Deep Learning Toolbox was known as Neural Network Toolbox. To forestall one question I...

13일 전 | 0

| 수락됨

답변 있음
Change for loop stepsize
Rather than computing the elements yourself by repeated multiplication consider looping over a vector created using the logspace...

13일 전 | 0

답변 있음
Data loading in MATLAB
Loading the data could be as simple as calling load. The more challenging part is likely to be sharing this data among the vario...

14일 전 | 0

답변 있음
Slicing variable in parfor loop (restricted indexing)
What requirements must a variable satisfy to be a sliced variable? The documentation states four conditions: Type of First-Leve...

15일 전 | 2

답변 있음
Detecting values in a vector that are different but very close to each other
Use uniquetol to unique-ify the data with a tolerance. uniquetol can return a vector of indices that indicate to which of the un...

15일 전 | 0

| 수락됨

답변 있음
Can I check if factored and expanded polynomial forms are equal?
>> syms w k >> x1 = (w^2-k^2); >> x2 = (w+k)*(w-k); >> isAlways(x1 == x2) ans = logical 1

17일 전 | 0

답변 있음
Only one function doesn't work only after the app designer program is compiled
syms phi z0 This requires Symbolic Math Toolbox which is an ineligible product for MATLAB Compiler. Depending on what "some ...

18일 전 | 0

답변 있음
Put nested structure into another structure
Why not go directly to a table array? a = maketable("result1", 23, "mph"); b = maketable(["result1"; "result2"], [23; 34], ["m...

18일 전 | 0

| 수락됨

답변 있음
I have a complex number z = 5+3j, how do I find the phase of z, complex conjugate of z, and modulus of z?
See the documentation page on Complex Numbers for functions that may be of use when working with complex numbers in MATLAB. Reg...

18일 전 | 0

| 수락됨

답변 있음
Produce a diagnistic once per failed test method?
If you want to store your data, why not use a FileArtifact diagnostic? You could put it in a temporary folder created by a Tempo...

18일 전 | 0

답변 있음
How to call a function if unit test fails?
If all you want your function to do is display a diagnostic message, just modify your call to assert slightly. %% Unit test a ...

19일 전 | 1

답변 있음
Generating a weighted random number
Set up a vector of probabilities. dist = [2 1 1 1 1 1]; p = normalize(dist, 'norm', 1); % sum(abs(p)) is effectively 1 Use th...

19일 전 | 2

Load more