Answered
Invalid use of operator.
Let's play "Count the parentheses". The way to play: Start a counter at 0. Whenever you see a ( add 1 to the counter. Wheneve...

6 years ago | 0

Answered
A variable saved in a structure as a mat file in 2018b seems unreadable in 2020b
If the definition of the Defect class is not available when you try to load it from the mat-file how would MATLAB know how to co...

6 years ago | 1

| accepted

Answered
table2timetable adding time vector with start- and end date
The times for a timetable can be either a datetime array or a duration array. Turn your data into a duration array and use it to...

6 years ago | 0

| accepted

Answered
char to double data type
I recommend turning the character data representing dates into a datetime array and using that datetime array along with your do...

6 years ago | 0

Answered
Can I store a function including multiple variable?
You can't call a function handle using :. If you want the anonymous function to "remember" and use the values of x and t that yo...

6 years ago | 0

Answered
Hi, I want a solution regarding below error.
Google found only one hit for mk_egs_string. It was this question. So this is not a MathWorks function, nor is it a function on ...

6 years ago | 0

Answered
I have matrix A, calculate null(A) but then A*null(A) doesn't give me 0?
Note that the description of the output argument on the documentation page for the null function does not include the character ...

6 years ago | 0

Answered
Is there such a table units identification approach?
Let's make a sample table and give it some units: >> load patients >> patients = table(LastName,Gender,Age); >> patients.Prop...

6 years ago | 0

| accepted

Answered
How to find what settings "tsne" is using when I do not specify any Name Value pairs as options?
Open the documentation page for tsne using the doc command. Scroll down to the Name-Value Pair Arguments subsection of the Input...

6 years ago | 0

| accepted

Answered
Why matlab live editor and matlab script gives different rank calculation result for the same matrix ?
The value MATLAB displays is sometimes not the value MATLAB uses in computations. >> format short >> x = 1 + 1e-8 x = 1....

6 years ago | 1

Answered
MATLAB CODE COVID-19
This is not at all what I'd call a trivial task, given the number of papers and stories on the MathWorks COVID-19 R&D page. At a...

6 years ago | 1

| accepted

Answered
Help me read the doc on matlab.fonts Settings
What is the purpose of TemporaryValue ? The name itself indicates that its value will only be used for a limited time. Setting ...

6 years ago | 0

| accepted

Answered
Loading C files in matlab with mex
I'm not familiar with that package but I'm curious if the ilu function in MATLAB would be suitable for your needs?

6 years ago | 0

Answered
How to change variable in base workspace without blocking the thread?
Are you using the Simulink Support Package for Arduino Hardware? I have not used this myself but I would be surprised if it didn...

6 years ago | 0

Answered
What products are Recommended?
In addition to what the other posters suggested, take a look at the Solutions page on the website. This lists various industries...

6 years ago | 1

Answered
Complex number to polar form
Use pol2cart and cart2pol to convert between the (r, theta) and (real, imag) representations of the complex numbers. Since I'm g...

6 years ago | 1

Answered
pitch function equation for documentation
Do the Algorithms and References sections on the documentation page for the pitch function not provide the information you want ...

6 years ago | 0

Answered
Stuck on question 2.
Under the constraints that you have to use nested for loops and that this only has to work for matrices, not N-dimensional array...

6 years ago | 0

| accepted

Answered
How can I select the working dimension by supplying the DIM argument?
In the Extended Capabilities section of the documentation page for the max function, expand the "C/C++ Code Generation" item. Th...

6 years ago | 0

Answered
Polar Graphe-draw
The polarplot function may help you.

6 years ago | 1

Answered
how can i calculate a complex polygon with coordinates in matlab ?
If you want to do more than just compute its area I would use polyshape for that. >> x = [7 7 5 3 -5 0 -8 2 -4]; >> y = [-7 3 ...

6 years ago | 0

Answered
What kind of blocks are these?
Based on context I think they are To Workspace blocks.

6 years ago | 0

| accepted

Answered
Ideas for a better way to present my data
I agree with Rik's suggestion. I think a heatmap might work well, as might a bar3 plot. But a broader suggestion I have is to t...

6 years ago | 0

| accepted

Answered
Non Compatible Indices, Combining array sections
You can't put multiple numbers into one element of a numeric array. x = 1:10; x(5) = ... % assigning to one element of x ...

6 years ago | 0

| accepted

Answered
please help to solve the issue below, I couldn't replace the Matrix A with matrix b. For example, Matrix A is 4x4 and Matrix b is 4x1. What can I do?
A and b are not inputs to your function. Only n is. If you want A and b to be inputs, define your function to accept them as inp...

6 years ago | 0

Answered
Previous versions of Symbolic Math Toolbox
Running release X of a toolbox with release Y of MATLAB (where X is not the same as Y) is not supported. Unless you're using fu...

6 years ago | 0

| accepted

Answered
How can I plot this anonymous function?
(x^.2) You probably don't want to use the matrix power operator ^ to raise the square matrix x to the 0.2 power here. You prob...

6 years ago | 0

| accepted

Answered
Global variable definition change in 2020a
My suspicion is that you're not actually using global variables, you're using variables shared between a function and another fu...

6 years ago | 0

| accepted

Answered
ode45 failing but other solvers work fine
Rename this file from ode45.m (which prevents you from calling the ode45 function included in MATLAB) to firstorderRK45.m. Don't...

6 years ago | 0

Answered
Runtime error in compiled standalone
"Creation of symbolic expressions, such as using sym, syms, and str2sym" in a standalone application created with MATLAB Compile...

6 years ago | 0

| accepted

Load more