Respondida
How to draw rectangle with coordinate, height and width provided?
You could call the patch function, or if you need to draw a large collection of rectangles you could create one polyshape then u...

casi 4 años hace | 0

Respondida
how should i contact my administrator to get my license key?
Go here to see if your college or university has a campus-wide license. If you do I suspect it will be able to tell you how to a...

casi 4 años hace | 0

Respondida
Is it possible to adjust the maximum step size ('MaxStep') while an ode15i solver is running according to a certain value?
If you know the times at which you want to change functions and/or initial conditions ahead of time, run ode15i repeatedly for s...

casi 4 años hace | 0

| aceptada

Respondida
Control other applications using MATLAB
It depends. One relatively easy approach would be if the application you're trying to control has a COM interface you can use in...

casi 4 años hace | 0

Respondida
How to input functon arguments without order?
As of release R2021a you could do that by requiring all the inputs to be specified as name-value pair arguments. But if your fun...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to use MATLAB editor more effectively
What you're describing is the code folding functionality. See the "Fold Code" section on this documentation page for more inform...

alrededor de 4 años hace | 0

| aceptada

Respondida
Why does not string(f.name) work, f = dir(folder)?
filename = fullfile(matlabroot, 'toolbox', 'matlab', 'elfun', '*.m'); D = dir(filename) s = string({D.name}); Now you can ope...

alrededor de 4 años hace | 1

Respondida
Question about different results using PCA and SVD
From the Algorithms section on the pca documentation page: "The pca function imposes a sign convention, forcing the element with...

alrededor de 4 años hace | 1

| aceptada

Respondida
Is there a more efficient way to format my vector rather than manually change the code by hand
%Time T = 5400; INT = 900; tme = 0:INT:T; %Number of Positions and Impacts Pn = 1320; In = [30, 60, 75,...

alrededor de 4 años hace | 0

| aceptada

Respondida
How can I make these few lines a function?
If you want all the axes you create going forward to have those property values, consider changing the default property values r...

alrededor de 4 años hace | 0

Respondida
how to make something between quotation automatic!
If you're just fitting polynomials you could use polyfit and polyval, specifying n as the third input argument. load census n ...

alrededor de 4 años hace | 0

| aceptada

Respondida
How and where can I get the clearance permission for using maps generated in MATLAB?
For legal questions like this please create a service request for Customer Service.

alrededor de 4 años hace | 0

Respondida
Why is ascii2str not recognized in 2022a?
According to the documentation "The operator ascii2str is supported only in Stateflow® charts that use C as the action language....

alrededor de 4 años hace | 2

Respondida
Natural Cubic Spline Interpolation
Set a breakpoint on the first line of your code. Run your program on an example that you (or your textbook) have worked out, ste...

alrededor de 4 años hace | 0

Respondida
Find country code from city name
As far as I'm aware there's no function in MATLAB to map address information to country information, but if there is a web resou...

alrededor de 4 años hace | 0

Respondida
pause() function is inaccurate
You probably want to create an audioplayer object and call playblocking on it instead of using sound. load handel sound(y, Fs)...

alrededor de 4 años hace | 2

| aceptada

Respondida
Couldn't find the file
That data file is in the example's folder, which is not on the MATLAB path by default. If you open the example in MATLAB using t...

alrededor de 4 años hace | 0

Respondida
problems with creating a multiplication table
If you change your code so as to no longer use table as a variable name (since table already has a meaning in MATLAB) you could ...

alrededor de 4 años hace | 1

Respondida
value of type 'sym' is not convertible to 'double'
You cannot create a sparse matrix that contains a symbolic expression. Either store the symbolic expression in a symbolic matrix...

alrededor de 4 años hace | 1

Respondida
"Precise" random variables from a distribution
Since 0.01 cannot be exactly represented in double precision, your values may not be exactly multiples of one-hundredth. But if ...

alrededor de 4 años hace | 0

| aceptada

Respondida
using inputdlg function in user defined function
Since you're doing this in a MATLAB Function block, rather than bringing up a dialog each time I'd consider using a Constant blo...

alrededor de 4 años hace | 0

Respondida
matlab.unittest.TestCase automatic retry
This isn't directly an answer to your question, but as an alternative to always needing to rerun some or all of your tests can y...

alrededor de 4 años hace | 0

Respondida
Round towards specific values in an array
A = [2000 1999 1998 1996 1993].'; B = [2000 1995 1990 1985 1980].'; Assuming all the elements of B are unique, interpolate to ...

alrededor de 4 años hace | 0

Respondida
LaTeX interpreter is not working correctly with code including subscripts in Control System Toolbox legends
This is Not a Bug. In LaTeX, A_bc will only treat b as a subscript. In order to include multiple symbols in a subscript (or supe...

alrededor de 4 años hace | 1

Respondida
add columns to matrix
In general you can use blkdiag. A=[1 2 3 6 ]; B=[4 5 5 6 9 8 7 6 9 6 8 6 9]; D=[4 1 2 3 5 68 9 6 9 6 9 6 9 6 9 63 45 82 85 96...

alrededor de 4 años hace | 0

| aceptada

Respondida
How can I edit code so only bottom graph is displayed.
The histcounts function does not return an object with properties like the histogram function does, but the outputs from histcou...

alrededor de 4 años hace | 0

Respondida
Plotting a multi-dimensional matrix
In MATLAB select the Plots tab on the Toolstrip. Click the small downward pointing triangle to the right side of the Plots secti...

alrededor de 4 años hace | 1

Respondida
Detect and remove outliers in signals
You could try filling the outliers with NaN values (or some other method) using the filloutliers function. x = [1 2 99 4 5] fi...

alrededor de 4 años hace | 0

Respondida
Matlab 2020a doesn't find complier when it did with 2017a
According to the Supported Compilers column entry for release R2020a on the Previous Releases system requirements page Windows S...

alrededor de 4 años hace | 0

Respondida
When will Ubuntu 22.04 be supported?
Ubuntu 22.04 LTS is not listed on the Platform Road Map. Therefore as far as I'm aware we have not announced when or if this OS ...

alrededor de 4 años hace | 0

Cargar más