Answered
2020b update 4 - scatterhist - help example does not work
Do you perhaps have a function named range.m that's taking precedence over the range function included in Statistics and Machine...

6 years ago | 0

| accepted

Answered
Need to plot a graph of -y(t) and x(t) on MATLAB
pos(:,1)=x(:,1).*sin(x(:,3)); pos(:,2)=-x(:,1).*cos(x(:,3)); So pos(:, 1) is the x(t) you're trying to plot and pos(:, 2) is...

6 years ago | 0

Answered
How to solve "Matrix index is out of range for deletion." error?
Suppose you were a pirate being forced to wash the plank that your pirate crew uses to force people to walk the plank. The plank...

6 years ago | 0

Answered
How to create a vector, knowing start, increment and number of values.
Let's take a simpler example. Start at A = 1 with an increment d = 0.5 and create a vector with n = 5 values. The vector is [1, ...

6 years ago | 0

Answered
Trying to create a base line that the function starts at.
See the yline function to draw your flat dashed line. What do you want to do if the data you've calculated starts at y = 50? Do...

6 years ago | 0

| accepted

Answered
Mean and SD for 3D matrix
The cat function is one of the few (if not the only) functions where the dimension input comes first. In most other functions (i...

6 years ago | 0

Answered
Best practice for managing debug/instrumentation code
You could write a displayDiagnosticInfo function that you call throughout your code that displays its input(s). When you're at t...

6 years ago | 1

Answered
Problem with Polyval, potential bug
This is not a bug and this behavior is not caused by polyval but by plot. What happens if you call plot with one input argument?...

6 years ago | 1

| accepted

Answered
how to set x-axes in a histogram of gray scale image and how to see if the image is saturated (12 bit)
You haven't specified the bin edges, the bin method, or the bin width in your histogram call. Because of this I'd be concerned t...

6 years ago | 0

Answered
Recommended Products default query
It really depends what you're doing in the field of marine engineering / naval architecture. Are you designing control systems f...

6 years ago | 1

Answered
code will not run, but gives no error message
Let's say you call your entropy function with inputs 1 and 2. entropy(1, 2) On the second line of your entropy function, it ca...

6 years ago | 1

| accepted

Answered
How to define 𝑓(𝑥, 𝑦) = 𝑒−(2√𝑥2+𝑦2)
Since this sounds like it might be part of a homework assignment, I'm just going to point you to two functions that may be of us...

6 years ago | 0

Answered
Displaying (small number)*(syms variable) as 0
Another solution, if you know one of the quantities involved is a multiple of : syms x; a=0; b=1/2; c=x; R=[cos(a)*cosp...

6 years ago | 1

Answered
HELP. Need to understand MATH behind scatteredInterpolant or Interp2 function
If you believe scatteredInterpolant is computing the wrong answer but cannot share the data with the community, please send your...

6 years ago | 0

Answered
Output shows an 'ans=', I don't know where did i go wrong
Your function is defined to return up to seven output arguments. function [day,month,year,YY,MM,DD,message]=bday_calc(~,~,~,~,~...

6 years ago | 0

Answered
matlab invalid expression error
When you define your function, the function declaration line should include the names of the variables into which the input argu...

6 years ago | 0

Answered
array of strings from an array of integers
If you're using a release that supports the string array (which did not exist when the original question was asked) use string. ...

6 years ago | 1

Answered
Matlab license key problem
If you're having difficulty with the license key provided by your university, please contact your university's IT department or ...

6 years ago | 0

Answered
Sign of imaginary value changes after converting to array
My guess is that you accidentally used the conjugate transpose operator (') instead of the non-conjugate transpose operator (.')...

6 years ago | 2

| accepted

Answered
Keep variable in the memory without declaring it as global
I have a function that creates/loads a variable. This variable has to be later used in another (separated) function. However, in...

6 years ago | 0

Answered
Looking for a way to "vectorize" my code (or some other efficiency help)
It is also important that each of these matricies remain "separate" entries from one another. It's getting very unwieldy to hav...

6 years ago | 0

Answered
Create a numeric variable with date+hour
How are you planning to use this "numeric variable with date+hour"? It's quite likely that you can achieve your goal with a date...

6 years ago | 0

| accepted

Answered
adding only to the y value in matrix
The answer depends on how you're storing your coordinate data. Is it stored as two columns, the first x and the second y? v = (...

6 years ago | 0

| accepted

Answered
Error using sum function in function handle
I suspect you have a variable named sum in your workspace when the anonymous function is created. If I'm correct the use of the ...

6 years ago | 0

Answered
how to resolve this error shown in command window
There are a couple possibilities: Modify your code so it doesn't try to make arrays that are over 5 GB in size. Change the arr...

6 years ago | 0

Answered
How to compare two 3D matrices element-wise?
Use the all function. You'll want to specify the optional dim input argument as well as the required A input argument (the data....

6 years ago | 1

| accepted

Answered
Please explain how this matlab code works works and what it does
I recommend contacting the person who gave you that code or the original author of the code and asking them for help understandi...

6 years ago | 0

| accepted

Answered
Creating a function for median
I think you can do what you want more simply with groupsummary.

6 years ago | 0

Answered
Issue with table functions
Can you show us the full and exact text of the error message you're receiving? Not just the "Too many input arguments" part but ...

6 years ago | 0

Answered
Does deeplearning toolbox still have unsupported network architecture?
The list of functions in Deep Learning Toolbox may help you answer this question. If there is a particular type of network you w...

6 years ago | 0

| accepted

Load more