回答済み
Disp: "Dot indexing is not supported for variables of this type"
You've written or downloaded a disp.m file that's shadowing the built-in disp function. Run this code. which -all disp You wil...

12日 前 | 0

| 採用済み

回答済み
Problem with if statement
If you want to check if element i of y is less than 2, that's not what your if statement says. It is checking all the elements o...

12日 前 | 0

| 採用済み

回答済み
How to get the address of libpointer?
Why do you need or want to get the address? If you're looking to iterate through the array, just use the + operator as shown by...

12日 前 | 0

回答済み
Delete rows from a timetable with an specific criteria
See the "Select Rows with Logical Indexing" section on this documentation page for an example you can use as a model. That examp...

12日 前 | 1

| 採用済み

回答済み
How to assign a symbolic variable to a location inside a matrix?
In your expression y(1, 1) = A the expression on the left of the equals sign refers to a double array while the expression on th...

13日 前 | 0

| 採用済み

回答済み
can not run the file
When you say "it write[sic] error 5 when I run it", do you mean you receive License Manager Error -5 when you try to start MATLA...

13日 前 | 0

回答済み
Optimization Toolbox Functions Available to Matlab Coder
The blue bar labeled "Documentation" near the top of the main documentation page for each MathWorks product should have a link t...

14日 前 | 1

| 採用済み

回答済み
Anonymous function to class property method.
Note: you shouldn't call your class bar as that already has a meaning in MATLAB. Use this: fmincon(@(x) objfun(o.myfoo, x),x0,...

16日 前 | 0

| 採用済み

回答済み
Use multidimensional Indices returned by max to get values from another array of same size
If you're using release R2019a or later, specify the 'linear' option to obtain linear indices from max and use those linear indi...

16日 前 | 0

| 採用済み

回答済み
How to get multiple outputs from a function?
Retrieving two outputs from a function requires two steps. Define the function to return two outputs Call the function with tw...

16日 前 | 1

回答済み
MATLAB script to simulate the sound of dialling any telephone number
If you just need a function that can play that sound, Cleve Moler's Numerical Computing with MATLAB toolbox (available from the ...

16日 前 | 0

回答済み
Is there a way to add synchronize function to Matlab 2016a?
As Adam Danz said, this function was released in release R2016b. It also only works on timetable arrays, not table arrays, as yo...

16日 前 | 1

| 採用済み

回答済み
Looks like a machine error
Your variables appear to contain the same values as the hard-coded constants, but looks can be deceiving. The small differences ...

16日 前 | 0

| 採用済み

回答済み
Problem with symsum: not working with vector of matrix elements
If I understand what you're trying to do correctly, symsum is the wrong tool to use because you're trying to use that variable o...

16日 前 | 0

回答済み
What read() function with <<1,'uint8'>> arguments returns afterall?
When you call the serialport function then call read on the ouput of that function, you're calling this version of the read func...

16日 前 | 1

| 採用済み

回答済み
imshow not working when going from unit8 to double
How did you convert the image from uint8 to double? See this page in the Image Processing Toolbox documentation and this one in ...

17日 前 | 0

回答済み
Changing variable name from input string
Rather than using eval or storing your "variable names" and your values separately, if the names are valid MATLAB identifiers yo...

17日 前 | 1

回答済み
imwrite error saying 'TransparentColor' is not a recognized parameter
That argument appears in a section on the documentation page describing functionality available for the GIF format, not for the ...

18日 前 | 0

回答済み
What am I missing while using cellfun & eval together
There's no need to use eval here. Instead, I would use table array indexing on y. I believe dynamic property indexing will work ...

18日 前 | 0

| 採用済み

回答済み
How do I save a Figure with a Filename based on it's contents?
What does the variable named fig contain? I think you intend for it to be the fig input argument listed in the Description secti...

18日 前 | 0

回答済み
Overwriting a table with a different sized table
You haven't shown us what your data looks like, so I'll use a sample timetable from the documentation. indoors = readtable('ind...

18日 前 | 0

回答済み
download simmechanics link 2019b
Do you have permissions to write to the Program Files directory on your hard drive? If this is a shared computer (say in a compu...

18日 前 | 0

回答済み
How to solve a second order differential equation using ODE45?
Take a look at the van der Pol equation example on this documentation page. That ODE looks very similar to yours, though the way...

18日 前 | 0

回答済み
how to define the function of systems of ODE and call the function correctly in matlab 2018?
You don't want to call DEs with 0 inputs and pass whatever that call returns into ode45. DEs requires two inputs to execute corr...

19日 前 | 1

回答済み
Problem running methods in .jar files
Check whether or not the tokenize method of the TurkishTokenizer class is static (whether the Qualifiers column of the window op...

19日 前 | 0

| 採用済み

回答済み
Piecewise function of y
Start off with a C vector that is the same size as height. C = zeros(size(height)); Now use the technique shown in the "Replac...

19日 前 | 0

回答済み
How to group variables together
You probably want to use a struct array or perhaps a table array. If your data is date and/or time based, a timetable array will...

19日 前 | 0

| 採用済み

回答済み
please send me use a file installation key for matlab simulink r2019b
Are you a student? If so, check if your school provides you access to MATLAB via a Campus-Wide License. If they do, your school'...

19日 前 | 0

回答済み
Binning data into a new matrix
Use the discretize function. See the "Assign Bin Values" example on that documentation page as I believe it does what you're try...

20日 前 | 0

回答済み
matlab 2020a prerelease Exception in Thread..
Please send any questions about prerelease versions of MathWorks software to Technical Support directly instead of posting them ...

22日 前 | 0

Load more