Answered
How to convert data byte by byte
s = '|0|01|00|5e|' data = split(s, '|') d = hex2dec(data) If you want to eliminate the first and last 0 in d, trim the leadin...

5 years ago | 0

Answered
Subscript a table error while indexing
Did you define a variable named table? If so you will be unable to call the table function to create more table arrays while tha...

5 years ago | 0

Answered
Replacing a numberless string in matrix with a number
I would likely use a string array. colors = ["green"; "blue"; "yellow"; "purple"]; % Make some sample data ind = randi(numel(...

5 years ago | 0

Answered
Feature selection functions in R2018b
At the end of the documentation page for the fscchi2 function it states the function was introduced in release R2020a. Similarl...

5 years ago | 0

Answered
mat2str() on complex values with 0 inaginary part
Not a bug. Many operations in MATLAB, if the result has an all zero imaginary part, will remove that imaginary part. complex is ...

5 years ago | 0

Answered
Can I make money with the Trading Toolbox?
If you want an official answer to this licensing question, please contact Customer Service using this page (linked from the Supp...

5 years ago | 2

Answered
Trigonometric functions pi independent support, accurately, atanpi, asinpi, ...
Please submit enhancement requests to Technical Support using the Contact Support link on the Support section of this site if yo...

5 years ago | 0

| accepted

Answered
Convenient handling of datetime function arguments and class properties
But that didn't work out, because Matlab's one-arg datetime(x) constructor interprets numeric inputs as datevecs, not datetimes....

5 years ago | 0

Answered
How can I get a calculated function value???
Since you're mentioning that you evaluate the function and then define a value for u, I assume you're using symbolic variables f...

5 years ago | 1

| accepted

Answered
How do I set a class property?
If you want to initialize the value once and have that be unchangeable for the rest of the lifetime of the object, make it a Con...

5 years ago | 0

Answered
Will "Hydraulic (Isothermal Liquid)" be replaced with "Isothermal Liquid"?
Take a look at the relevant entries in the Simscape Fluids Release Notes for more information about these two blocks.

5 years ago | 0

Answered
Is there a limit to the number of elements in an array in Matlab
If you want the data to be read in as uint16 and then returned as uint16 as well, use '*uint16' as the precision input in your c...

5 years ago | 0

Answered
Solve a*x + x*(b^x) + c = 0
I'm doubtful that you'll be able to find a general symbolic solution. Substitute numeric values in for a, b, and c and use fzero...

5 years ago | 0

Answered
How can I solve this following problem? (overcome * mark)
From the help text for the format function: format RAT Approximation by ratio of small integers. Numbers ...

5 years ago | 0

| accepted

Answered
how to display on increment 0.5 for time
Either create a counter that counts how many iterations you've performed and only fprintf if the counter indicates the current v...

5 years ago | 0

Answered
Is it possible to manipulate a plot axis; i.e., divide values by 1000 so that the x axis range is 0 to 300 instead of 0 to 300000 and also get rid of exponential notation?
If you access the numeric ruler associated with the coordinate axes using the XAxis, YAxis, or ZAxis properties of the axes obje...

5 years ago | 0

Answered
Finding smaller and larger values than user's input for 2D interpolation
Is your data gridded or scattered? If it's gridded, scroll down to the "Interpolation with the interp Family of Functions" secti...

5 years ago | 0

Answered
Using fzero for intesection and "integral" for area calculation
clear, clc, clear plot Use these commands sparingly or not at all in a script file. People running your script may not expect a...

5 years ago | 0

Answered
Requested array exceeds the maximum possible variable size.
Let's say you want to extract the two elements equal to 1 in this matrix. A = [1 2 3; 4 5 6; 7 8 1] You can do this with find ...

5 years ago | 0

| accepted

Answered
where is my fault?
The find function just tells you which elements of its input are true. It doesn't actually select if the next line of code shoul...

5 years ago | 1

Answered
Missing toolbox Parallel computing
Did you (or your school or company) purchase licenses for those two toolboxes? If you're not sure, I recommend checking with who...

5 years ago | 0

Answered
bisector method help and inputs
You haven't showed the code for your APFunction, so all we can say is that you're calling it with five input arguments and it mu...

5 years ago | 0

Answered
Using obj within function without passing it
The online documentation indicates I do not need to pass obj to the function to use it within That is incorrect. See the "Metho...

5 years ago | 0

| accepted

Answered
What does fzero take as input for the function?
then what does the function findmode take as input x? fzero will call your findmode function repeatedly with various values as ...

5 years ago | 1

| accepted

Answered
Handling Big Data in MatLab
Some of the tools and techniques described in the Large Files and Big Data category in the documentation may be of interest to y...

5 years ago | 0

| accepted

Answered
Finding the trajectory of a ball
Do not call ode45 with fball as the ODE function from within fball itself! That way lies (at best) a recursion error. Call ode45...

5 years ago | 0

| accepted

Answered
Error using tiledlayout syntax instead of subplot when referencing axes handles
Be very careful about using gca, gcf, etc. in your code. I generally only use those when I'm experimenting in the Command Window...

5 years ago | 0

| accepted

Answered
What value is 1.0000e-03 in normal numbers?
format longg x = 1.0000e-03

5 years ago | 1

Answered
How to convert a 'char' into 'double' data type without disrupting the data?
You could try adding back in the '0' that you subtracted to create DoubleC from C, but keep in mind that not all the values in I...

5 years ago | 0

Load more