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

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

5 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(~,~,~,~,~...

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

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

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

5 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 (.')...

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

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

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

5 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 = (...

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

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

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

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

5 years ago | 0

| accepted

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

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

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

5 years ago | 0

| accepted

Answered
Warning: Matrix is singular to working precision.
See this documentation page for an explanation of the difference between the / and ./ operators.

5 years ago | 1

| accepted

Answered
Unrecognized function or variable
I suspect you copied and pasted what had been typed and/or displayed in the Command Window (including the text that your disp ca...

5 years ago | 0

Answered
change table var type
A = array2table(magic(4)) A.Var1 = string(A.Var1) Though depending what you're trying to do, using discretize or categorical t...

5 years ago | 1

| accepted

Answered
How to stop Matlab from execution when it reaches a certain value for specific variable when I use ode45?
Use an Events function to stop the solver when a particular condition is satisfied at some time not known in advance. If you kno...

5 years ago | 1

Answered
converting table 2 timetable using timeVarName
A = array2table(magic(4)) T = table2timetable(A, 'RowTimes', seconds(A.Var1)) You'd probably want to remove Var1 from T if you...

5 years ago | 0

| accepted

Answered
Executable file with inputs
See this documentation page for information on how to write and call standalone applications that accept input arguments.

5 years ago | 0

Answered
How do you name single output functions?
function result = calculateResult(input) % calculateResult calculates Result ;D end I have some feedback on this. First, the...

5 years ago | 0

Answered
Finding start and end points of a sloped plateau
The islocalmax function or the Find Local Extrema task may be of use to you.

5 years ago | 1

| accepted

Answered
how to find the basis of a null space of matrix in matlab
Take a look at the null function.

5 years ago | 0

| accepted

Answered
How do you name time series / table variables?
My advice is to name the variable that contains your timetable array something that makes sense for your application. If you're ...

5 years ago | 0

| accepted

Answered
Xticks as Days for specific data points
Something along the lines of that code should work if you plotted your data with datetime X data. daysSinceJanuary1st = randi([...

5 years ago | 0

Answered
Why I get wrong in integral function?
fun = @(x) ((x.^3)+x+1)/((x^2)+1)^2; f = integral(fun, 1,6); Because you are using the matrix power operator (^) instead of th...

5 years ago | 0

Load more