Answered
Make num2str in engineering format
If you're using release R2021a or later I would use formattedDisplayText instead of evalc. wcutoff = 5.2e10; t = formattedDisp...

15 dagen ago | 1

Answered
Example command not available
Do you have Communications Toolbox installed? Check using the ver function. ver comm

15 dagen ago | 0

Answered
How to find the changing point in figure?
Take a look at the ischange function.

19 dagen ago | 0

Answered
Why can't I open a file on MacBook?
I recommend not creating a variable named path, as path already has a meaning in MATLAB. See doc path for more information on th...

20 dagen ago | 1

| accepted

Answered
Custom defined data class not recognized
That class is part of the fwpck package. You will need to call it using the package name or import the package. y = fwpck.Globa...

20 dagen ago | 0

| accepted

Answered
I am having error using ode45 with Inputs must be floats, namely single or double
[r,eps_bar] = ode45(@(r,eps_bar)@(omega) (eps(r).(omega)-eps_bar).*(eps_bar+2.*eps(r).(omega))./(r.*eps(r).(omega)),tspan,1,opts...

20 dagen ago | 0

Answered
Computational speed when the array dimension is large
Have you tried a stiffer solver? See this post on Cleve Moler's blog for more information about stiffness.

22 dagen ago | 0

Answered
license for my app
For an official answer please contact Customer Service.

22 dagen ago | 0

Answered
i keep getting " root' requires Symbolic Math Toolbox. Error in newtonbisection (line 46) fprintf("Optimal root of the given function: %f\n\n",root)". how to fix that? thanks
What value is given to the variable root in the code if the while condition is not satisfied? while eps>tolerence The answer i...

23 dagen ago | 0

Answered
Too many input arguments
Do you need to implement Dijkstra yourself (as part of a homework assignment or school project) or do you just need to call some...

23 dagen ago | 0

Answered
double2str and bin2str
See the functions listed on this category page in the documentation.

23 dagen ago | 0

Answered
Why did this error message appear?
Since r is a double array, anything that you want to assign into it must be a double array or convertible into a double array. ...

23 dagen ago | 0

Answered
When will MATLAB dump its Java dependencies?
The Release Notes for release R2021a state "Java® packages and subpackages that currently ship with MATLAB will not be available...

24 dagen ago | 0

Answered
How to tell matlab to, instead of throwing an error message, give me a Boolean (e.g., 0 means I get error) when I try to use Horner command
Rather than explicitly type out a 32nd degree polynomial, why not use a for loop? Start with your accumulator containing the val...

24 dagen ago | 0

Answered
Why does MATLAB dot product function interpret r as 2 different variables. I want to use trigonometric identities. How can I fix it?
If you want MATLAB to assume that r is real, tell it that. syms r1 % r1 could be complex syms r2 real % r2 must be real x1 = ...

25 dagen ago | 1

| accepted

Answered
how to calculate the execution time of program?
tic and toc is one way to measure the performance of your code. Other ways include the timeit function and the Profiler.

25 dagen ago | 0

Answered
How to preserve nanosecond precision in datetime calculations (for large numbers)
Start off with the time as a symbolic object. dt=sym('1294871257.002060945'); If you don't and just start with dt as a double ...

26 dagen ago | 2

| accepted

Answered
Algorith doesnt work in program code for Thomas algorithm
If this is a homework assignment, I'm guessing there may be at least one or two examples in your textbook where they walk throug...

26 dagen ago | 0

Answered
Combine data from 3 tables based on common datetime?
Are you storing your data as table arrays or as timetable arrays? If the former, consider converting the table arrays to timetab...

26 dagen ago | 0

Answered
How to delete all rows of a matrix wherever any value is invalid (999)?
Let's make a sample matrix M with some 999 values present in columns 1 and 4. I'll also make a backup copy of it so we can modif...

26 dagen ago | 0

Answered
Installing matlab r2018b in macbook air m1
From this Answers post: "MATLAB R2020b Update 3 and later are supported on Apple silicon Macs through the Rosetta 2 translation ...

27 dagen ago | 0

Answered
Extract element from a table
Let's make a sample table. rng default listOfTypes = ["apple"; "banana"; "cherry"]; T = listOfTypes(randi(numel(listOfTypes),...

27 dagen ago | 0

| accepted

Answered
Unexpected resul when trying to plot from array "empty double row vector"
% >> x305a(1,404:end) Most likely x305a has fewer than 404 columns. As a smaller example: x = 1:10; x(1, 11:end) % 11:end is ...

27 dagen ago | 0

Answered
What's the problem with this simple anonymous function?
You likely meant to use n(i) in your functions, not n. Another option would be to use 1./n instead of 1/n. n = 1:3 y = 1./n z...

27 dagen ago | 0

| accepted

Answered
R2014b install problem
The System Requirements for release R2014b for Mac OS X list supported operating systems as 10.7.4+, 10.8, 10.9, or 10.10. It al...

27 dagen ago | 1

| accepted

Answered
How do I make an executable system solver?
Creation of symbolic expressions is not supported for use with MATLAB Compiler.

28 dagen ago | 0

Answered
How do I update array elements through a loop?
The empty Static method (you'd made a typo and used emtpy instead of empty) creates a 0-by-0 array of the class when called with...

28 dagen ago | 0

Answered
How exactly does MATLAB calculate a sum of array elements by its sum() function? Does it use any compensated summation algorithm such as Kahan?
You might find this post on Loren Shure's blog interesting and informative.

28 dagen ago | 1

| accepted

Answered
A question about the efficiency of matrix multiplication in MATLAB.
If you were going to the grocery store to pick up a bunch of items for dinner, which process would be more efficient? Go to the...

28 dagen ago | 1

Answered
Why do I get the error 'Unable to use a value of type cell as an index.'?
Is that table.m file that you have open in the Editor the one included with MATLAB, in which case you shouldn't have modified it...

29 dagen ago | 0

Load more