Answered
New feature Mex Out-of-Process
Jan is correct that generally we don't discuss whether or not something is in our future plans. Bruno Luong, A King, if you wan...

6 years ago | 0

Answered
APP and global variables
Is your calculation routine a function outside the app, a Static method of your app, or a non-Static method of your app? If it'...

6 years ago | 0

Answered
Problem with creating an .executable program
I believe you need to explicitly tell MATLAB Compiler to include calculations.m in the executable. This is the problem described...

6 years ago | 0

Answered
How to use lsqnonlin with class method functions?
Is it possible to use a class method for 'fun in x = lsqnonlin(fun,x0,lb,ub)? Yes. I defined my method (method1) as a function...

6 years ago | 0

Answered
error using integral function
Rename the variable you've defined named integral so that it doesn't shadow the integral function included in MATLAB.

6 years ago | 0

| accepted

Answered
Function Error / If and elseif statement help
Consider using a switch / case statement. food = ["apple", "beans", "cauliflower", "dragonfruit", "egg"]; groceries = food(ran...

6 years ago | 0

Answered
How can i select daily data with a 15 min partition?
Index into your timetable with a timerange. x = randn(100, 1); N = datetime('now'); t = N + minutes(60*x); tt = timetable(t,...

6 years ago | 0

Answered
Why do I get empty result?
When I display the expression in the Live Editor, I see that the numerator of the expression is the product of a (very large) co...

6 years ago | 0

Answered
Set variable equal to folder in path
Assuming you start off in MainDir: S = 'SubDir1'; A = fullfile(pwd, S, 'SubDir2', 'AnalysisDir1'); fprintf('Changing director...

6 years ago | 0

Answered
Bad documentation help function
help net.divideFcn attempts to get help for the function whose name is divideFcn in the package folder named net. help(net.div...

6 years ago | 0

Answered
Why aren't the outcomes of class methods being applied to global variables:
Your class is a value class rather than a handle class. See the description of the difference between those two types of object ...

6 years ago | 0

Answered
"transposition operator" symbol in Mac
The smart quote character is not the ctranspose operator. If you're copying your code from an application that replaces normal s...

6 years ago | 1

Answered
Error using reshape because "size arguments must be real integers"
You said that "Activity_dff is a 1200640x1 matrix of decimal numbers. " You then compute sz = size(vector); % groupZ_value = s...

6 years ago | 1

| accepted

Answered
How to convert a graph to adjacency matrix?
You've created a variable named adjacency that is taking precedence over the adjacency method for graph objects. Rename the vari...

6 years ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
y(i, j) refers to exactly one element of y as you've defined i and j. How many elements does, say, '10' have? numel(num2str(10)...

6 years ago | 0

Answered
Access to product key
If you're using a license provided by London Southbank University, please contact the university's IT staff (whoever maintains s...

6 years ago | 0

Answered
Solving a system of ODEs with parameters that depend on a variable other than time.
The initial condition y0 must be specified as a vector, not a struct array. The same holds for the InitialSlope option. But note...

6 years ago | 0

Answered
How can I retime my timetable with a 10days timestep?
Pass a datetime vector as the newTimes input to retime as shown in the Interpolate Timetable Data to Time Vector example on the ...

6 years ago | 1

Answered
Experts of MATLAB, how did you learn? Any advice for beginner/intermediate users?
Two questions that can be useful to ask when writing a significant piece of code are "What problem am I trying to solve?" and "W...

6 years ago | 2

Answered
I cannot get the input function to work
You have a variable named input in the base workspace (assuming you're running this from the prompt in the MATLAB Command Window...

6 years ago | 0

| accepted

Answered
Why does my plot say undefined variable or function for X2?
There are several problems with your code, but the main one is that your for loop body never executes. for X = 1:Xc Since Xc i...

6 years ago | 0

Answered
How can open multi tabs ???
Taking a guess at what you want to do, I think you want to see multiple documents at once. If that's correct, you can do this by...

6 years ago | 0

Answered
How can i start 'for loop' initializing from zero and have decimal increment??
Your for loop is fine. But there's no such thing as elements 0 or 0.1 of an array in MATLAB (the first element of an array in MA...

6 years ago | 1

Answered
Troubles with data types: integers, doubles, scientific notation, and type casting
Which release of MATLAB are you using? The ability to specify the subscripts (the first two inputs) in the sparse function as ar...

6 years ago | 0

Answered
function with two outputs
I'm taking a guess at the problem you're experiencing. In order to obtain one or more outputs from a function, two conditions m...

6 years ago | 0

Answered
Help in understanding ode45 options
That is an old syntax, one that remains for backwards compatibilty purposes, for passing additional parameters into functions sp...

6 years ago | 0

| accepted

Answered
Different functions with different variables as input
A cell array is one option, but there are at least three potential drawbacks I see with that approach. The first drawback is th...

6 years ago | 2

Answered
Using for loop to match generated random numbers to an input value
You have no control over how many iterations it will take to match the number the user chose, so a for loop (which has an upper ...

6 years ago | 0

Answered
Data string unreadable in matlab
The first output argument from xlsread contains the numeric data from the file. Your text data doesn't represent a number so it ...

6 years ago | 0

Answered
Data Extraction using Logical Operators
Instead of building your own binning function, consider using histcounts or perhaps histcounts2.

6 years ago | 0

| accepted

Load more