Respondida
Loading user-defined classes from .mat files absent the classdef
At one time, if I had a .mat file with a user-defined class variable, but lacked the classdef file, loading the .mat file would ...

alrededor de 1 año hace | 0

| aceptada

Respondida
where can I find the code?
Go to the webpage or documentation page for the example that calls that function. Use the button to open that example inside MAT...

alrededor de 1 año hace | 0

Respondida
Correct way to test if a value is a function?
If you are debugging (note: don't use this in "production" code, as called out in the Note on its documentation page) you could ...

alrededor de 1 año hace | 0

Respondida
Code Matlab for a function that depends in a real parameter
Parameterize the function you pass into the integral function. See the "Parameterized Function" example on the integral document...

alrededor de 1 año hace | 0

Respondida
Why the squeeze function squeeze 1x3 array to 1x3, but squeeze 1x1x1x3x1 to 3x1?
If I recall correctly (this was before my time at MathWorks started) squeeze was introduced when we introduced arrays with more ...

alrededor de 1 año hace | 0

| aceptada

Respondida
Is there a function to tell if Matlab is using little-endian or big-endian on current computer?
See the third output from the computer function. [str, maxsize, endianness] = computer

alrededor de 1 año hace | 0

| aceptada

Respondida
Vector where each value is X times larger than the last
Use cumprod. x = [2 3*ones(1, 4)] y = cumprod(x) If you don't know how many elements you want y to have, just what you want t...

alrededor de 1 año hace | 0

| aceptada

Respondida
Constraint set to be a real number
The outputs from the nonlinear constraint function should not be boolean values. They should be continuous values. Try making y...

alrededor de 1 año hace | 1

Respondida
i need activation key,pleases help me
If you're trying to use your company or educational institution's license, ask whoever maintains the organization's software lic...

alrededor de 1 año hace | 0

Respondida
Parfor random numbers are not quite random
I would expect all the elements of v to be unique because they are randomly generated. However, I observe that many of them coi...

alrededor de 1 año hace | 0

Respondida
From perpetual and individual Matlab student license to academic and permanent Matlab license
I recommend you contact Customer Service directly using this link or the Sales department directly using this link for help with...

alrededor de 1 año hace | 0

Respondida
How to efficiently pass input arguments to a compiled app?
See this documentation page.

alrededor de 1 año hace | 0

| aceptada

Respondida
What is the difference between these two commands?
s = [3 4] What you wrote won't work. It may seem deterministic in this scenario but in general it's ambiguous. try [m n] ...

alrededor de 1 año hace | 1

Respondida
With contour of image how to change x and y axis?
As written you're using the contour(Z) syntax shown in the Syntax section on the contour function documentation page. The Descri...

alrededor de 1 año hace | 0

Respondida
Appdesigner Question: Is it possible for a user to reset a default value?
One potential approach is to use custom settings. From that documentation page, "You can create custom settings to store and acc...

alrededor de 1 año hace | 0

Respondida
Filtering test cases out of a test suite
I am writing a script that takes in a matlab.unittest.TestSuite object that contains several test cases from tests (call this te...

alrededor de 1 año hace | 0

Respondida
Vectorized code slower than loops
Vectorization is one tool in your MATLAB toolbox, but so is the for loop. Each has its own pros and cons. I think Mike Croucher...

alrededor de 1 año hace | 3

Respondida
What is the extended symbolic math toolbox?
It was a product that extended Symbolic Math Toolbox functionality. Many years ago (I don't remember the release offhand) the fu...

alrededor de 1 año hace | 1

| aceptada

Respondida
Hello, I'm trying to create a plot for an equation of motion defined as a function.
Please show (or even attach) the full and exact file. My suspicion is that the lines where you define those constants are ahead ...

alrededor de 1 año hace | 0

Respondida
finding the value at a specific time from second-order ODE
You could call ode45 with just one output argument and then call deval, or you could call ode45 with the desired time as one ele...

alrededor de 1 año hace | 1

| aceptada

Respondida
Combine Two polyshape Objects Similar to addCell Functionality
p1 = nsidedpoly(4); p2 = nsidedpoly(5); The union function makes a polyshape with 1 region. P = union(p1, p2) Concatenation ...

alrededor de 1 año hace | 0

Respondida
how would one use logic commands to run separate function files with single-statement intput?
Use the input function with the 's' option to allow the user to type in a string, or you could use uigetfile to let the user sel...

alrededor de 1 año hace | 1

| aceptada

Respondida
Spacing correction in documentation.
The spacing looks correct to me in the version of the documentation online to which you linked. Could you state which browser yo...

alrededor de 1 año hace | 0

Respondida
Matlab Compiler: Is "userpath" always there and accessible?
I would probably try using the tempdir and/or tempname functions.

alrededor de 1 año hace | 0

Respondida
Using accumarray or a similar method for tables
This wasn't an option in the release the original poster was using (the two functions required were released in release R2016b, ...

alrededor de 1 año hace | 1

Respondida
Convert a Cell array to a timetable
If you have a set of row vectors in a cell array sampleCell = {1:10, 11:20, 21:30}; first to accomplish your stated goal you n...

alrededor de 1 año hace | 0

| aceptada

Respondida
Can the random function accommodate the randi function?
I would not position random as replacing the more specific pseudorandom number generation functions. See the Alternative Functio...

alrededor de 1 año hace | 2

| aceptada

Respondida
Input a variable into a plot title
With the introduction of the string array in release R2016b (and the ability to enclose text data in double quotes to create a s...

alrededor de 1 año hace | 25

| aceptada

Respondida
I want a Mathworks Polo Shirt
We have now opened the MathWorks Merch Shop. See this blog post for more information.

alrededor de 1 año hace | 1

| aceptada

Respondida
MATLab promotional items?
We have now opened the MathWorks Merch Shop. See this blog post for more information.

alrededor de 1 año hace | 0

Cargar más