Answered
How to solve "Parse error at METHODS: usage might be invalid MATLAB syntax."?
anonymousFunctiononHandle=... @x cost_function_augumented_equality_only(x,alpha) ; This isn't valid MATLAB syntax....

5 years ago | 0

Answered
I've been facing this issue the issue is with axes
function UPLOADIM_Callback(hObject, eventdata, handles) % hObject handle to UPLOADIM (see GCBO) % eventdata reserved - to ...

5 years ago | 0

| accepted

Answered
I am using Matlab.mathworks.com and my command area does not print anything
Are you still seeing this behavior or did you only see it in the past? I see a notice on the application status page indicating ...

5 years ago | 0

Answered
Mean error for binned values
Rather than calling splitapply multiple times, I'd call groupsummary once and have it operate on multiple data variables at once...

5 years ago | 0

Answered
defining a function output properly
So you want to call a function that can return different numbers of outputs and you want to get a number of outputs that is only...

5 years ago | 1

| accepted

Answered
Minimum Spanning Tree - Path or Start-End
If the plot function can do this almost instantly The plot function plays "connect the dots". The start and end of the line to...

5 years ago | 0

Answered
Contour is plotting my data in reflected order?
Are you trying perhaps to put the contour plot on top of another graphics object, an image perhaps or maybe a pcolor? If so, see...

5 years ago | 0

Answered
Switch results at certain condition
switch is not the right tool for this job. Use if instead. switch is intended when you intend to distinguish between a fixed di...

5 years ago | 0

Answered
Find does not work properly
Please provide a small sample of the Horizon variable from where you expected the find call to return data but it does not. My s...

5 years ago | 0

| accepted

Answered
How does division "/" = work for integer types?
See the "Creating Integer Data" and "Arithmetic Operations on Integer Classes" sections on this documentation page.

5 years ago | 2

Answered
Why is logical array fasle?
Floating point arithmetic. While k1 and g are displayed the same they do not contain the same value down to the last bit.

5 years ago | 0

Answered
Computer crashed when calculating matrix (mixed with sparse and full) multiplication and summation
What release of MATLAB are you using? What operating system? I'm suspect you're going to say Linux. If I'm right, the OOM Kille...

5 years ago | 0

Answered
curve fitting tool plot is different from my plot
Show us the code you used to create your plot. Did you use the full double precision values of the coefficients stored in the f...

5 years ago | 1

Answered
Curve fitting tool error with custom equation
Does your data contain a point with x = 0? If so the term c*(1/x) is going to give you Inf or NaN (depending on whether or not c...

5 years ago | 1

| accepted

Answered
What does vdp stand for? (Mathworks Example Simulation Model)
The vdp model is a simulation of the Van der Pol oscillator differential equation. It's a fairly simple model to create which is...

5 years ago | 1

| accepted

Answered
change of time in ode45
If the right hand side of your system of differential equations involves the solution at a previous time you don't have a system...

5 years ago | 0

Answered
Is there a way to access array elements returned by a function directly
What you've written is not valid MATLAB syntax. You could do something close to what you want using a helper function. valueAt ...

5 years ago | 0

Answered
Operations by matrix disease: 1.000.. - 1 is not equal to zero
Welcome to the world of floating-point arithmetic. Please try this little experiment. Find something to write with and somethin...

5 years ago | 0

Answered
How can I not count some rows within X,Y columns that contain X>=3 to alter the bin counts of Y for a histogram?
If I understand your goal correctly I think you want to call histogram with the 'BinLimits' name-value pair.

5 years ago | 0

Answered
How to solve A*x=0 in Matlab?
Use the null function, but remember the zero vector will also be a solution.

5 years ago | 0

Answered
What is this assignment statement attempting to do?
This calls the meanX function with raw_data as input and returns two outputs. We can speculate as to what meanX does from its na...

5 years ago | 0

Answered
Kindly any one help me regarding MATLAB GUI guide execution of my research work?
If you want to plot into an axes in your GUI, why are you explicitly creating a new figure? figure; hold Specify the handles o...

5 years ago | 0

Answered
Proof eigenvector matches to a given matrix
What is the definition of the eigenvector of a matrix? Can you demonstrate that A and b satisfy that definition?

5 years ago | 0

Answered
What is the Best Way to Deal with an Empty Line Object?
x = 1:10; y = 1:10; i1 = x<=3; i2 = x > 100; i3 = x >= 7; hold on plot(x(i1),y(i1),'r','DisplayName', 'first'); plot(x(i...

5 years ago | 0

Answered
Unable to resolve the name phased.internal
See Bug Report 2470530. Apply the workaround given in that bug report or fix it by installing release R2021a Update 2 if possibl...

5 years ago | 2

| accepted

Answered
Using a loop to replace spaces for underscore
Use the replace function. before = 'Hello world' after = replace(before, ' ', ' cruel ')

5 years ago | 0

Answered
How do I specify time increment in computation in for loop?
for loops can iterate over arbitrary vectors, not just 1:something. x = 1:0.5:5; for k = x fprintf("The value of k is %f....

5 years ago | 0

Answered
how to determine efficiency centrality of a node in Matlab
Build a graph or digraph representation of your network and call centrality on it. Depending on how you define "efficiency" you ...

5 years ago | 0

Answered
Strange behaviour of a function handel
According to Google Bill Gates has a net worth of 126.5 billion USD. If you saw him on the street and handed him a $20 bill, wou...

5 years ago | 0

| accepted

Answered
How to solve "Maximum recursion limit of 500 reached." error
You've created a script file clc.m that tries to call the built-in clc function on its first line. The clc.m you've created take...

5 years ago | 1

Load more