Answered
un-mix a pdf
So you want the local peaks? Take a look at the islocalmax function.

5 years ago | 0

Answered
symbolic math tool box
Symbolic Math Toolbox is not supported for use with MATLAB Compiler. There is no way to make this work. Depending on what you'r...

5 years ago | 0

Answered
How to extract powers of a symbolic polynomial?
syms z y = 0.96*z^3500 + 0.04*z^0 [coefficients, powers] = coeffs(y) syms y positive exponents = simplify(subs(log(powers)./...

5 years ago | 2

Answered
MATLAB not able to make calculation - array limit
The maximum of the sum of an element from A and an element from B (which is what I think you want, not what you're doing) is the...

5 years ago | 0

| accepted

Answered
Private properties inherited from abstract properties
So you only want the superclass and the subclass methods to have access to it? Set its Access, GetAccess, and/or SetAccess attri...

5 years ago | 0

| accepted

Answered
MATLAB code error clarification
Your CalcMeasures function requires you to call it with at least one input argument. You called it with zero input arguments. Be...

5 years ago | 0

| accepted

Answered
For loop iteration issue
Loop through elements? A = magic(4); s = 0; for elt = 1:numel(A) s = s + A(elt); end fprintf("The sum of elements in a 4-b...

5 years ago | 1

Answered
"Unrecognized function or variable" error when using fminbnd on an anonymous function
h is already a function handle, there's no need to try to make it one again. f1 = @sin; % Regular function handle f2 = @(x) x....

5 years ago | 1

Answered
PLEASE HELP ME!! :(
I would turn your y into a function. Rearranging your code a bit: fplot(@(x) x,[0,2],'m-') hold on % SL: I used repmat to a...

5 years ago | 0

| accepted

Answered
loading and convertion values in a text file to IEEE754 so as toobtain IEEE results in tabular form
What do you mean by "convert ... to IEEE754"? Do you mean that instead of seeing the numeric value: format longg x = pi you w...

5 years ago | 0

Answered
Compatibility of Matlab with IEEE-754 1985 or 2008
Is MATLAB compatible with IEEE-754 1985 or 2008 ? There are a few operations for which the IEEE specs state what the answer sho...

5 years ago | 0

| accepted

Answered
How to draw an undirected graph based on coordinates
Build a graph object. Call plot on it and specify the graph node coordinates as shown in the "Custom Graph Node Coordinates" exa...

5 years ago | 0

Answered
How to map points in Vector A with many points in vector B?
You can do this using an adjacency matrix: A = [1 1 0; 0 0 1; 1 0 1]; D = digraph(A); D.Nodes.Name = ["Boston"; "New York"; "...

5 years ago | 0

Answered
Error: This statement is incomplete.
So the command that's being executed looks like it is: submittedmatlab -sd F:\MATLAB\matlab2020\bin\matlab.exe -r knn_func(1, 1...

5 years ago | 0

| accepted

Answered
i have problem in bisection method.
Stop using inline. Use function handles or anonymous functions instead. f = @sin; g = @(x) cos(x+1);

5 years ago | 0

Answered
Imshow() error 2018a matlab
Rename the file you created named newplot.m that's taking precedence over the newplot function included in MATLAB.

5 years ago | 0

Answered
Conceptual motivation for the difference between imhist() and histcounts()
I haven't used imhist very much if at all, but I suspect using histcounts with the 'integers' BinMethod is likely to be close in...

5 years ago | 0

| accepted

Answered
Roots function is not working.
That system has an ARM processor, doesn't it? If so it does not satisfy the system requirements for that release of MATLAB, whic...

5 years ago | 0

| accepted

Answered
Series of vector values
You want the cumulative sum? x = 1:10 y = cumsum(x)

5 years ago | 1

| accepted

Answered
picking numbers with specific difference in matlab
One way is to take advantage of implicit expansion. x = 212:215; y = [0; 0.3; 0.7]; z = reshape(x+y, 1, [])

5 years ago | 0

| accepted

Answered
How do you set a breakpoint on multiple lines at once?
Breakpoints are respected but the code is around 700 lines long and I don't want to have to set a breakpoint manually for each ...

5 years ago | 0

Answered
problem with symbolic calculation
The way you've written it, when you try to assign a into F(3) MATLAB needs to convert the symbolic a into a numeric value so it ...

5 years ago | 0

Answered
Cannot open file "." for reading. You might not have read permission.
dataset = dir('/Users/Desktop/Image Dataset'); All the entries in dataset (including the '.' and '..' directories) are relative...

5 years ago | 0

| accepted

Answered
Is it possible to include New Algorithms In reinforcement learning toolbox
If there are specific algorithms that you believe should be included in Reinforcement Learning Toolbox, you can request that Mat...

5 years ago | 0

Answered
Symbolic Integral Seems to be Giving Wrong Answer
syms G F x h(x) = F*(G-x); j(x) = 5*(2-x); wrong = int(h,x) right = int(j,x) Let's check if wrong and right are the same w...

5 years ago | 1

Answered
Function containing symbolic, numeric and previous (period) information
Don't make variables named P1, P2, P3, etc. If you had a million time steps would you want to have a million variables in the wo...

5 years ago | 0

Answered
Why do I get this error "Undefined function or variable 'yline'" in MATLAB 2015b?
The online documentation page states that this function was "Introduced in R2018b" down at the very end of the page.

5 years ago | 0

Answered
randperm not working correctly on Matlab Web App
I believe that each instance of the Web App is or is equivalent to a new session of MATLAB. In that case this documentation page...

5 years ago | 1

| accepted

Load more