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...

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...

4 giorni 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 ...

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 ...

4 giorni 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...

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...

4 giorni 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...

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...

4 giorni 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, ...

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, ...

4 giorni ago | 0

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. ...

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. ...

5 giorni 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...

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 giorni 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...

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...

8 giorni 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 ...

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 ...

8 giorni 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...

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...

8 giorni 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...

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...

8 giorni 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. ...

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. ...

8 giorni 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...

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...

9 giorni 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...

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...

9 giorni 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...

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...

9 giorni 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,...

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,...

9 giorni 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); ...

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); ...

10 giorni 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...

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...

10 giorni 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 ...

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 ...

10 giorni ago | 0

| accepted

Answered

Symbolic solve/linsolve GUI Compiler - ERROR

Symbolic Math Toolbox is not eligible for use with MATLAB Compiler. Use matlabFunction to generate one or two function files tha...

Symbolic solve/linsolve GUI Compiler - ERROR

Symbolic Math Toolbox is not eligible for use with MATLAB Compiler. Use matlabFunction to generate one or two function files tha...

10 giorni ago | 0

Answered

How change the colormap on heatmap??

Change the Colormap property of the heatmap, either when you construct the heatmap: h = heatmap(magic(5), 'Colormap', copper);...

How change the colormap on heatmap??

Change the Colormap property of the heatmap, either when you construct the heatmap: h = heatmap(magic(5), 'Colormap', copper);...

10 giorni ago | 0

Answered

Cannot zoom into figures

Flavv, The name view already has a meaning in MATLAB. The zoom function (which is called when you use the zoom button in the Fi...

Cannot zoom into figures

Flavv, The name view already has a meaning in MATLAB. The zoom function (which is called when you use the zoom button in the Fi...

10 giorni ago | 0

Answered

return many value in function.

k1_1= sum(data{1:10,{'Var1'}})/10 k1_2= sum(data{1:10,{'Var2'}})/10 k1_3= sum(data{1:10,{'Var3'}})/10 k1_4= sum(data{1:10,{'V...

return many value in function.

k1_1= sum(data{1:10,{'Var1'}})/10 k1_2= sum(data{1:10,{'Var2'}})/10 k1_3= sum(data{1:10,{'Var3'}})/10 k1_4= sum(data{1:10,{'V...

10 giorni ago | 2

Answered

how can i sum

Are the -1 values just indicators that there is data missing? If so, I'd replace them with NaN values and call sum with the 'omi...

how can i sum

Are the -1 values just indicators that there is data missing? If so, I'd replace them with NaN values and call sum with the 'omi...

10 giorni ago | 0

Answered

Is the 2007b release of MATLAB fully supported software?

Please send this question to Customer Service using the telephone icon in the upper-right corner of this page for an official an...

Is the 2007b release of MATLAB fully supported software?

Please send this question to Customer Service using the telephone icon in the upper-right corner of this page for an official an...

10 giorni ago | 0

Answered

MATLAB syntax (parantheses without intermediate steps)

That intermediate step isn't necessary in this case, since you're using a release that supports the 'all' dimension input argume...

MATLAB syntax (parantheses without intermediate steps)

That intermediate step isn't necessary in this case, since you're using a release that supports the 'all' dimension input argume...

10 giorni ago | 0

Answered

Asking User a Question with Variables

For this you could use num2str as JESUS DAVID ARIZA ROYETH posted, but I'd prefer either creating a string array to pass to the ...

Asking User a Question with Variables

For this you could use num2str as JESUS DAVID ARIZA ROYETH posted, but I'd prefer either creating a string array to pass to the ...

11 giorni ago | 0

Answered

how to use large numbers

Use Symbolic Math Toolbox. Be careful not to perform computations in double that result in values greater than flintmax and then...

how to use large numbers

Use Symbolic Math Toolbox. Be careful not to perform computations in double that result in values greater than flintmax and then...

11 giorni ago | 0

Answered

Problem solving laser rate equations with ode45 command

Your initial condition vector is: y0 = [0,0,0,0]; What happens when you evaluate your ODE function at t = 0 and this y0 vector...

Problem solving laser rate equations with ode45 command

Your initial condition vector is: y0 = [0,0,0,0]; What happens when you evaluate your ODE function at t = 0 and this y0 vector...

12 giorni ago | 1