Answered
What could these numbers mean?
This doesn't look related to MATLAB or MathWorks products at all, but this looks like a nonogram.

3 years ago | 0

| accepted

Answered
Using a boolean operation to assign specific values for each threshold
Use the discretize function.

3 years ago | 0

| accepted

Answered
what is wrong in this code not executing .??????Error: File: ifSf.m Line: 2 Column: 22 Invalid expression. Check for missing multiplication operator, missing or unbalanced del
To clarify what @Stephen23 and @Chunru said, when you define a function all the input arguments that you specify must be either ...

3 years ago | 0

Answered
My first user-input prompt is to enter a number (say, x). What should I write if my next message box MUST contain the same number of prompt questions as x?
I'd use a string array. I'm going to hard code the value of n to keep this example simple, but you could query for it using a di...

3 years ago | 1

| accepted

Answered
Can't make .exe file from Appdesigner that include simulink model
See this page from the documentation for Simulink Compiler for an example of how to deploy a standalone application that calls a...

3 years ago | 0

| accepted

Answered
to create a loop to assign names
If you're just using this to obtain the name of the variable in the workspace from which your function was called, use inputname...

3 years ago | 0

Answered
Error using matlab.internal.math.checkDataVariables Invalid grouping variables.
The second input for the groupsummary function as you're calling it should be the name of a variable in your table. "stormData.R...

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 2

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 2

| accepted

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

Load more