Answered
scalar vs nonscalar structure: advantages?
What you want to do with your data? This documentation page gives two examples that show how each type of struct allows you to "...

6 years ago | 1

| accepted

Answered
Find matched string in table
Compare the text data stored in the table with a string array. Let's build a sample using the example from the documentation for...

6 years ago | 0

| accepted

Answered
int() commant doesn't work for me
At some point before you ran that code, I'm pretty sure you had created a symbolic variable named int. When you tried to call th...

6 years ago | 0

Answered
Why is the edge detection in MATLAB different to OpenCV or custom code write by algorithm?
Different doesn't necessarily mean wrong. If you have an example where you believe the edge function is returning incorrect resu...

6 years ago | 0

Answered
How can I write a function that draws a regular polygon with n sides in a cartesian plot?
Use nsidedpoly to create a polyshape then plot that polyshape.

6 years ago | 1

Answered
How to compute the norm of ever row vector in a matrix?
Use the vecnorm function.

6 years ago | 0

Answered
How to solve 'SamplePoints' value contains Inf or NaT. ?
A relevant section of your code: dtm = datetime(dt,'InputFormat','yyyyMMddHHmmss.SS'); % end % end M{i} = movmean(y,k,'Sampl...

6 years ago | 1

| accepted

Answered
symsum undefined error for input arguments
Your b variable isn't symbolic at the time you try to use it in symsum. It was overwritten by the loop variable for your inner l...

6 years ago | 0

| accepted

Answered
App Designer updates much (20x) slower than GUIDE
Try calling drawnow limitrate instead of drawnow with no inputs.

6 years ago | 1

Answered
Double integration in matlab
Dont use integral or integral2 to integrate a symbolic function. Use one of the symbolic integration functions listed on this do...

6 years ago | 0

Answered
How to set/adjust editor tabs to default view?
In the upper-right corner of the "new editor window" (the undocked document) there should be a small circle containing a downwar...

6 years ago | 1

Answered
How to convert integer to 12 bit binary and vise versa
There's no int12 data type in MATLAB. Depending on what you want to do with this data, if you have Fixed-Point Designer you coul...

6 years ago | 0

Answered
How to format the number of digits after a decimal point for double values when visualising EdgeLabels in a graph?
The display format preferences don't affect the precision used to create edge labels when you plot a digraph object. Use sprintf...

6 years ago | 1

| accepted

Answered
Should I insert tab for all lines of fsolve function?
which one of the two is coorect : None of the three are correct, but it's not due to different levels of indentation. Indentati...

6 years ago | 0

| accepted

Answered
Hypergeometric Woes: 'Error:Inputs must be numeric arrays'
Is there a reason you're using the function from that File Exchange add-on rather than the hypergeom function in Symbolic Math T...

6 years ago | 0

Answered
detrend not running proper?
Some of the functionality you're trying to use was introduced in release R2019a. You're likely using an older release. Check if ...

6 years ago | 0

Answered
"Unable to Resolve Name set.Y_i" | Error with using object setter functions
As per the first Note on this documentation page "You cannot call property access methods directly. MATLAB calls these methods w...

6 years ago | 0

Answered
I want to make a table with single array
table = loadfile.table_def; While a variable named table exists you cannot call the table function. I recommend clearing the va...

6 years ago | 0

Answered
how to solve "Your administrator has restricted your download rights to this MathWorks product."
As the error states, you should contact your administrator and ask them for the appropriate permissions to download the product....

6 years ago | 0

Answered
Wrap Matlab in web service
Do you want to build a web app with MATLAB Compiler (see the documentation for more information) or are you thinking something m...

6 years ago | 0

Answered
I want find the sum of all the elements of the matrix, how to do it?(with sum() function)
This wasn't an option at the time the question was originally asked, but if you're using release R2018b or later you can use the...

6 years ago | 1

Answered
Is it possible to run python code in matlab?
You might find this recent post on the "Loren on the Art of MATLAB" blog interesting and informative.

6 years ago | 0

Answered
Find Max of Array of structures.
Rather than storing your data in a struct array I'd consider storing it in a table array. The struct2table function may be able ...

6 years ago | 0

Answered
How do I create a dictionary where the rows are words (e.g., dog) and the columns are the "features" that the word has from a given set of features (e.g., for the row 'dog', the entry 'furry' = 1, but the entry 'meows' = 0)
If you're using release R2019b or later, when we introduced the ability for table variable names to contain any characters, you ...

6 years ago | 0

Answered
Hi I’m trying to make a column vector of 1870 20’s, then 1870 25’s, and then 1870 30’s
See the repmat and repelem functions.

6 years ago | 0

| accepted

Answered
Trying to Create New Project
The MATLAB Projects functionality was introduced in release R2019a, as shown in the Release Notes. The online documentation is ...

6 years ago | 0

| accepted

Answered
imaginary numbers slow down code
Your phasevector2D function can accept arrays of values for the x and y inputs. If you vectorize your expression for f, you don'...

6 years ago | 0

| accepted

Answered
Does MATLAB R2017B have serialport functions? I get error that function seralport is not defined
The serialport function was introduced in release R2019b according to the note at the end of its documentation page. For older r...

6 years ago | 0

Answered
I have a set of data which is stored in arrays and I want to pass the array in the function and I get the error too many function arguments but I have defined all the arguments
If x is an instance of an object your EvalFunction method must accept five input arguments, not four, for your last line of code...

6 years ago | 0

Load more