Answered
How can I run a specific version of matlab in non java mode using -nojvm?
You could specify the full path to the MATLAB executable that you want to launch either in the command prompt or in the target o...

6 years ago | 0

| accepted

Answered
Coordinates of nodes in plot graph
Copying my answer from this Answers post: B = graph(bucky); h = plot(B); X = h.XData; Y = h.YData; fprintf("Node 1 is locat...

6 years ago | 0

| accepted

Answered
Extracting data from a graph(directed graph.)
What "data of the nodes" do you want to retrieve? Do you want the coordinates of the plotted points? B = graph(bucky); h = plo...

6 years ago | 0

Answered
griddedInterpolant Error: Apparent Contradiction
Rather than using a separate report to debug this issue, set an error breakpoint. When it stops on a line where you create or us...

6 years ago | 0

| accepted

Answered
Replacing -999 in a table to NaN regardless of the type of the column
Let's take some sample data. x = randi([-10 10], 1, 10); Change three locations to -999. I also want to make a copy of x to ke...

6 years ago | 0

| accepted

Answered
Solving a Second Order Differential Equation
syms x t y(t) dx = diff(x, t) dy = diff(y, t) x is not a function of t so its derivative with respect to t is 0. y is a fun...

6 years ago | 0

Answered
What changed about matlab and tabs in a recent update?
tlines = sprintf('g1\t:\t14.203\t79.931\t50.598') split(tlines, '\t') % tlines{4} does not contain the characters \ and t spli...

6 years ago | 0

Answered
UI Figure windowstyle doesn't work - R2020a
The functionality you're trying to use was introduced in release R2020b. The online documentation is for the most recent release...

6 years ago | 0

| accepted

Answered
How can I define the number of output arguments for a matlab internal function like findgroups?
This is possible through the use of a comma-separated list. x = randi([-10 10], 1, 10) numOutputs = 2; theOutputs2 = cell(1, ...

6 years ago | 0

| accepted

Answered
How to plot already binned data
As written, you don't have counts so I would use histogram2 or histcounts2. % Create sample Hs and Tp matrices Hs = 15*rand(1,...

6 years ago | 1

Answered
colon expression to use integer operands
Seems to work fine for me. stepSize = (pi/512); thRadDbl = (0:stepSize:(2*pi - stepSize)); thRadDbl(1:5) There's no way you'...

6 years ago | 0

Answered
How to smooth out plotted points in a graph/figure?
Rather than creating one line per point I would consider using either scatter or one line per point color. xy = rand(10, 2); s...

6 years ago | 0

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...

6 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...

6 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(...

6 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...

6 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 ...

6 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...

6 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...

6 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....

6 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...

6 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...

6 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.

6 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...

6 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...

6 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 ...

6 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...

6 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...

6 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...

6 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...

6 years ago | 0

Load more