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

Answered
Transformation of a MATLAB Function.
f_xw = @(x,w) [3.*x(1) - x(1).^2/7 + w(1); -2.*x(2) + w(2)]; f_etaw = @(eta,w) [3.*(c1+G1*eta) - (c1+G1*eta).^...

5 years ago | 0

| accepted

Answered
CodeOcean - how do I install Toolboxes from .tar files
Note that the URL of the page states "user provided". I'm not certain but I don't know if that process applies to MathWorks tool...

5 years ago | 0

| accepted

Answered
Spooky behavior with anonymous functions
See the "Variables in the Expression" section on this documentation page. If you want to see what information an anonymous func...

5 years ago | 2

| accepted

Answered
Addition of 2 matrices with different dimensions
If we want to add 2 matrices in maths, their dimensions must be the same. I believe most texts accept a slight generalization o...

5 years ago | 0

Answered
Continuous execution of vertical line for set of data
It's not clear to me exactly what type of graphic you're trying to plot, but I think the stem and xline functions may be of use ...

5 years ago | 0

Answered
Dependent property for subclasses
You are only allowed to define a property accessor method for a property if the class in which the method is defined also defin...

5 years ago | 0

Answered
Permission for publication of figures produced by MATLAB
I recommend you review the software license agreement (available inside MATLAB using the Terms of Use menu item under the Help i...

5 years ago | 0

Answered
create a vector of repeated different values and different repetitions
Take a look at the repelem function.

5 years ago | 0

| accepted

Answered
Numerical Integration of symbolic expression
You can't integrate an expression numerically and have the result contain symbolic expressions. You could try dsolve but you may...

5 years ago | 1

| accepted

Answered
Unit Testing Stateflow Models
If you know how to programmatically interface with the charts and how to execute them but cannot use the Simulink Test product, ...

5 years ago | 0

Answered
MatLab Not Working the right way .
When you start MATLAB with the -nojvm option, MATLAB starts without the normal desktop using this alternate UI. But you said tha...

5 years ago | 1

| accepted

Answered
How to replace values of a vector based on the values of another vector?
Take a look at the histcounts2 function. From your description what I think what you want are the 4th and 5th outputs.

5 years ago | 1

| accepted

Load more