Answered
Why is nothing showing up on my plots?
When you call plot with just a color in the line specification, what you get is a plot with no markers. h = plot(1, 'b'); h.Ma...

2 years ago | 1

Answered
Not enough input arguments
[t,y]=ode45(@(t,y) SBR1,tspan,y0); The ode45 function will call the anonymous function with two inputs. That anonymous function...

2 years ago | 0

Answered
(problem solved, question revised) How to select table rows with varargin and not using logical condition as input argument.
For this particular application, I wouldn't use the dot notation to access the variables in your table. I'd use one of the other...

2 years ago | 0

| accepted

Answered
Why doesn't matlab have more plot colors?
If there are specific colors that you believe should be named, for which there's a somewhat agreed upon definition of what RGB v...

2 years ago | 0

Answered
Undefined function 'optimvar' for input arguments of type 'char' in mathlab R2013a
The optimvar function is part of Optimization Toolbox and was introduced in release R2017b. You will need to upgrade your instal...

2 years ago | 0

Answered
How to get Matlab/Simulink and Neural Network toolbox for my high school researcher?
Please contact the Sales department directly using this link and work with the Sales staff to determine the best way for your hi...

2 years ago | 0

Answered
Matlab's numeric solution to det of Matrix is incorrect
Let's plot your solution from the thesis and the solution returned by MATLAB. syms L B = [(-cos(L)+cosh(L))/(2*L^2) (-sin(L)+s...

2 years ago | 0

Answered
How to use indexing format inside symsum function
If you want to sum the elements of a symbolic array, just use sum. syms x f = x.^(0:5) s = sum(f)

2 years ago | 0

Answered
firstly i install matlab in a computer but its hardware broken, so i need to install matlab in another computer with same license
Deactivate the license for the broken machine (that page talks about deactivating on a machine you can't access) then install an...

2 years ago | 0

Answered
how to set xticks and xline
If you have data that is time-based, why not plot the data using a datetime array then specify the ticks and tick labels using d...

2 years ago | 1

| accepted

Answered
How to use exp() and powers ^ in uncertain matrixes?
ntcBase = ureal('ntcBase',2200,'Percentage',5) Let's see what operations are defined for this class. methods(ntcBase) The lis...

2 years ago | 1

| accepted

Answered
MATLAB WebApp Server - Class 'network' is an unknown object class
If you are attempting to compile code using MATLAB Compiler that calls load to load an object from a MAT-file and there is no in...

2 years ago | 1

| accepted

Answered
How can I loop/index through a table inside a table to generate plots? I'd like to store the plots back into the table.
After running the code, you can access the generated plots by simply clicking on the corresponding plot in the Book1 table's 6th...

2 years ago | 1

Answered
Error in graphplot Function (Econometrics Toolbox - DTMC)
I'm guessing you wrote or installed a file named rng.m that's taking precedence over the rng function included as part of MATLAB...

2 years ago | 0

Answered
mjs.bat does not exist in R2023a\toolbox\parallel\bin, how can I start mjs services
Check the output of the ver function. Does it list MATLAB Parallel Server among the products you have installed? I suspect that ...

2 years ago | 0

| accepted

Answered
How to call a symbolic function from a Simulink's MATLAB Function block?
An example of a symbolic function: F = @(x) x^2 No, as written that's an anonymous function not a symbolic function. Depending ...

2 years ago | 0

| accepted

Answered
How to dynamically allocate labels to a legend?
Rather than generating the legend strings as a separate variable and calling legend on that variable at the end, I would set the...

2 years ago | 0

Answered
How to calculate the date 0.25 years after the date of January 15, 2020
Normally I would have suggested using the calyears function instead of the years function, but that does not allow you to specif...

2 years ago | 0

Answered
The axe is cleared entirely when using cla function
So all you want is for the image in the axes to be removed, but for the axes properties to remain unchanged? I'd probably store ...

2 years ago | 1

| accepted

Answered
How to convert a string like "2.0:0.25:10.0" into a vector of floats?
Rather than using eval (or str2num which uses eval internally), since you know the exact format of the text data I'd split the s...

2 years ago | 2

Answered
"Invalid color or line style." Error during plotting in Executable
Read the "Using a MATLAB File You Plan to Deploy" section on this documentation page. Inside your application as you've written ...

2 years ago | 0

| accepted

Answered
When can Matlab support unicode variable names like some other programming language
In general MathWorks doesn't comment on whether or not something is on our future plans. If you feel strongly that MATLAB should...

2 years ago | 0

Answered
Kindly help me out with this code. its urgent please .thanks
Looking at one sample line from your HB function: dxdt(3) =-(((2*h*sin*x(1))/((cos)^3*(x(1))))+((c*(cos^2)*x(1)+2*(sin)^2*x(1))...

2 years ago | 0

| accepted

Answered
Hello everyone, I have date and time data in an excel separately. That is, year in one column, month in another, day in another column, and time in another column. how can i r
Read the data into MATLAB using your favorite approach then call datetime. data = [... 2023 4 21 20 2023 4 21 21 ...

2 years ago | 0

Answered
Is there a way to run particleswarm on multiple computer nodes?
See the "Processor Network" section on this documentation page.

2 years ago | 0

Answered
Is now supported a period in class method names (except 'set.*' constructions)?
Previously (R2022a), I have seamlessly used such convenient constructions as "add.Filter" or "add.Channel" as class method names...

2 years ago | 0

Answered
set number of ticks at any given time
If you know the bounds over which your data to be plotted spans, I would set those limits first using axis or xlim and ylim (and...

2 years ago | 0

| accepted

Answered
make use of dynamic mkdir
Use the function form of mkdir rather than the command form. cd(tempdir) mkdir 1985379 % command form, creating a place for us...

2 years ago | 0

| accepted

Answered
Can anyone plot these function by using Matlab (R2023a version) or (R2023b version) and show me if there is any differenc between my figures and the Matlab (R2023a version)
Looking at the two pictures posted in this thread, I'm guessing the original poster had turned hold on (or had changed the defau...

2 years ago | 0

Answered
Passing path as input argument in matlab.engine
The run function in MATLAB accepts only one input, the name of a script file. Is your main.m a script file or a function file? I...

2 years ago | 1

| accepted

Load more