Answered
Check for incorrect argument data type or missing argument in call to function 'log'.
I suspect your image variable (which you probably want to rename, as image already has a meaning in MATLAB) is one of the eight ...

3 years ago | 0

Answered
Generating the laplacian for a sub-graph that still reflects the connectivity of the overall graph
Your comment refers to "the first figure" but no figures are attached to this post nor are there any linked documents including ...

3 years ago | 0

| accepted

Answered
Question on DDE23
Nowhere in your ddefunc function do you define the variables a,b, etc. The fact that you've defined them in the script or functi...

3 years ago | 1

Answered
I dont know why i keep getting an Invalid operator
See the "Syntax for Function Definition" section on this documentation page. When you define a function the input arguments must...

3 years ago | 0

Answered
Can one extract a unit of time from a duration object?
MATLAB will try to select a good format for the duration object based on the data with which it was created. But if you want all...

3 years ago | 0

| accepted

Answered
Detect all local minimum and remove them
Another approach similar to John D'Errico's, but automating the detection and filling of the local minima: x = [280 295 310 325...

3 years ago | 0

Answered
why matlab is using all cores when no parallel pool is created
Many operations in MATLAB, when it would be beneficial to use multiple threads in their computation, are multithreaded even with...

3 years ago | 4

| accepted

Answered
Symbolic math tool - Seperate numbers from symbols
Depending what else you're planning to do with this result you could use symunit. I'm assuming mass and m are in units of kilogr...

3 years ago | 0

| accepted

Answered
How can I solve N (N>100) cubic equations parallelly?
Solving the roots of a cubic polynomial isn't very computationally intensive. I wouldn't be at all surprised if whatever benefit...

3 years ago | 0

Answered
Saving a structure element as a .mat file
If you want to extract some but not all of the variables stored in a MAT-file into a separate file, I'd use load to read just th...

3 years ago | 0

Answered
Can I extend the evaluation period?
Please contact Customer Service directly using the Contact Support link under the Get Support heading at the end of this page.

3 years ago | 0

Answered
How do I find Matlab after its installed on Linux?
See this documentation page.

3 years ago | 0

Answered
Need help on this question
Look very closely at the character vectors you're supposed to assign to the variable. You're missing the periods at the end of t...

3 years ago | 0

| accepted

Answered
How can I change which pathdef.m is loaded each startup?
If you look inside the pathdef.m file you will see a comment that starts "DO NOT MODIFY THIS FILE." Rather than creating your o...

3 years ago | 1

Answered
Optimise vertical position of nodes for shortest sum of paths
If you have a graph or diagraph object representing your nodes and their connections, perhaps plotting the graph or digraph and ...

3 years ago | 1

Answered
How to plot a graph between workspace "complex double" vs "double" ?
Where exactly on this axes: axes would you draw the point x = 0.5+0.25i, y = 0.75? One potential approach would be to make a ...

3 years ago | 0

Answered
Solving ODE's and linear algebraic equations simultaneously in matlab
So you have a system of differential-algebraic equations (DAE)? Since you mentioned dsolve it sounds like you have Symbolic Math...

3 years ago | 1

Answered
Greetings, I want to plot a figure with two y-axis but I get the undefined function for the yyaxis right command
According to the yyaxis function documentation page, this function was "Introduced in R2016a". Which release are you using? If y...

3 years ago | 0

Answered
Errors in loops in Matlab
k(1)=0.6*k_steady; I assume you haven't preallocated k, so k has just 1 element. for i=1:length(c1) c(1)=c1(i); I also a...

3 years ago | 0

Answered
Getting just the time in Date-time cell
I would turn the text representation of the dates and times into a datetime array then call the timeofday function on that array...

3 years ago | 0

Answered
Character string error only in no desktop mode
Do the commands appear to have extra line breaks inserted into them? If so see this Answers post.

3 years ago | 0

Answered
A function that creates a transformation matrix
function A = to_MNI(values) Your function accepts 1 input argument. You're calling it with 14. That's not going to work. value...

3 years ago | 0

Answered
How do I write this c++ for loop statement in Matlab for loop?
You could write this as a while loop (though I'd advise you to change the variable names min and max as they already have meanin...

3 years ago | 1

Answered
When I can get matlab official Matlab for apple silicon native version or beta?
As stated on this page "An updated beta based on MATLAB R2022b will be released in the coming weeks." Please also see this Answ...

3 years ago | 0

| accepted

Answered
I can't find optimize task in live editor
According to its documentation page the Optimize task was "Introduced in R2020b". You will need to upgrade to release R2020b or ...

3 years ago | 0

Answered
2 Questions about user defined function
1.When using user_defined_function, do I have to put an 'end' at the end of code? In a function file, either all of the functio...

3 years ago | 0

Answered
My Foor loop is not working! Urgent Help please
Look at the vector over which you're iterating. 75:10:80 Your for loop only runs one iteration. Were you expecting it to run m...

3 years ago | 0

Answered
Need help debugging code
Look at how you call your function in your Command Window and look how the example calls it in the sample output. You're not cal...

3 years ago | 0

Answered
datetime() does not return time data
In the Preferences, expand the MATLAB item in the tree. Select the Command Window item. What does it list for the default dateti...

3 years ago | 0

| accepted

Answered
How to convert datetime to datestr including day of year
Looking at the table of format identifiers in the description of the Format property of datetime objects on the datetime documen...

3 years ago | 0

| accepted

Load more