Answered
How do you solve for a double sum
h=0; i=0.0195314; m=100 for m=1:512 for j=1:n for i=1:n-m h=h+(z(i+m,j)-z(i,j))^2; end end h=1/(n...

7 years ago | 2

Answered
ActiveX: how to pass a string array to cst in matlab?
sWidth={"0.5";"1.1";"2.2";"3.3"} The error message is accurate in that sWidth is not a string array. It is a cell array whose c...

7 years ago | 0

Answered
Patner relationship and problem diskussing
You can contact MathWorks corporate headquarters using the information on this webpage.

7 years ago | 0

Answered
Count Days in Months
The "Specify Step Size", "Compare Fixed-Length Duration and Calendar Duration Step Sizes", and "Dates and End of Month" sections...

7 years ago | 0

| accepted

Answered
Visualizing flow through graph networks
Set the NodeCData property of the GraphPlot object. p.NodeCData = G.Nodes.Value; colorbar % to see the mapping between value...

7 years ago | 1

Answered
Change distance between grouped bars (bars are overlapping)
From the documentation for the bar function, specifically the section that deals with the width input argument: "Bar width, spe...

7 years ago | 0

Answered
Graph visualization adding white to my nodes. How to solve it?
Can you check if there's an update available for your graphics driver? If not, did this behavior suddenly start appearing (afte...

7 years ago | 0

Answered
fplot command makes plot white
Those ought to throw an error. You can't multiply a function handle and a number. You can multiple the result you receive from e...

7 years ago | 0

| accepted

Answered
Why is help() malfunctioning
The output you posted for help doc doesn't match the help text I see when I run that command. Did you post exactly what you see ...

7 years ago | 0

Answered
How to develop a number selector using matlab app designer?
Do you need individual buttons for each digit, or would a uispinner or uidropdown that allows you to select a number between 0 a...

7 years ago | 0

Answered
Error: Unbalanced or unexpected parenthesis or bracket
DON'T USE eval unless you absolutely need to. [There are very, very few circumstances where you absolutely need to.] But let's ...

7 years ago | 1

| accepted

Answered
Run scripts with a script
genpath is a big hammer. Are you certain you actually need to use it? Looking at the message you received: Warning: Name is no...

7 years ago | 0

| accepted

Answered
Write a loop that sums and subtracts elements with a lower and upper limit?
Do you want to stop the loop entirely or do you want to saturate and continue on with the next iteration starting from the satur...

7 years ago | 0

| accepted

Answered
How to draw lines in matlab figure
You could either turn the grid on or use the xline and/or yline functions. plot(1:10); grid on xline(4.5, 'r:') yline(2*pi, ...

7 years ago | 1

Answered
Sub function error within main function
In general, when you're asking for help with an error you should show the full and exact text of the error message you receive. ...

7 years ago | 0

Answered
running time problem in matlab
Take a look at groupsummary.

7 years ago | 0

Answered
Mathworks .m files license condition
I will repeat what I said in my response to a similar question from Jakub Tomek: "For questions about the license agreement you...

7 years ago | 0

| accepted

Answered
How to pass a method as a function handle
Are my_method and my_other_method Static or non-Static methods of the class of the value stored in the my_obj_with_methods prope...

7 years ago | 0

Answered
How to filling a blank matrix with designated patterns using a single for loop?
reshape your vector into a matrix of the appropriate size then flip the matrix. No for loop required. If you're required (by a ...

7 years ago | 0

| accepted

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
So when I calculate the index, it is 1.7290e+03. Calling "index" in the code throws an error, but copying and pasting "1.729e+03...

7 years ago | 0

| accepted

Answered
sinc(pi) doesn't give zero
The pi function does not return but a value very close to as Jeremy Marcyoniak stated. Using a tolerance or rounding are two a...

7 years ago | 0

Answered
for loop indexing per allocating
As KALYAN ACHARJYA stated you're not allowed to use either 0 or a non-integer value as an index into a numeric array in MATLAB. ...

7 years ago | 2

Answered
Traveling Salesman Problem: change border
So you want to try Cleve's or Loren's approaches for solving the TSP? Just substitute your own graph object reflecting which reg...

7 years ago | 0

Answered
Creating values to a matrix with "if" statement
When you call if with a non-scalar expression as its condition, " An expression is true when its result is nonempty and contains...

7 years ago | 0

Answered
Help Implementing Pseudo Code
Since this sounds like it may be homework I'm only going to give two hints. One way to do step 1 is to use discretize. You may...

7 years ago | 1

| accepted

Answered
The logical indices contain a true value outside of the array bounds
I recommend setting an error breakpoint and running your code again. When the code throws the error and stops at the breakpoint,...

7 years ago | 0

Answered
Two equal datetime values showing as unequal when compared?
One thing you can do is check if they're "close enough": s = datetime(2017,3,24,9,5,0.1); t = datetime(2017,3,24,9,5,0.2); ...

7 years ago | 0

| accepted

Answered
Legality of modifying built-in functions
For questions about the license agreement you should contact Customer Service using the telephone icon in the upper-right corner...

7 years ago | 0

| accepted

Answered
Undefined function 'month' for input arguments of type 'double'.
The month function is only defined for certain data types in MATLAB. It can be used to extract the month number from a datetime ...

7 years ago | 0

| accepted

Load more