Answered
Generation of 6x5 matrix with even numbers from 20 to 100
For this specific problem you can generate integers in the range [10, 50] and multiply those integers by 2. For the more genera...

6 years ago | 0

Answered
Name-value pairs
if ~isdouble(varargin{i}) || isfloat(varargin{i}) Assuming there were an isdouble function doing what you would expect...

6 years ago | 0

Answered
please teach me how to change in 2020 version??
The modem package was removed from Communications Toolbox in release R2019a. We first noted that modem.qammod and modem.qamdemod...

6 years ago | 0

Answered
create a variable based on timetable's date period
Using the sample timetable Star Strider created: DT = (datetime([2017 01 01]):caldays(1):datetime([2020 01 01])).'; HP = ones(...

6 years ago | 0

Answered
I need to know whats hardware from nVidia it's certificat by MathWorks to MatLab (every function)
Are you asking which GPUs can be used for running functions in MathWorks products, and which functions can take advantage of GPU...

6 years ago | 0

Answered
Create a series of vector with different name
If you have time and/or date based data, consider storing it in a timetable array. Then you can access data from a certain range...

6 years ago | 0

Answered
When I use the patch function Matlab crashed
Please send the crash log file to Technical Support using the telephone icon in the upper-right corner of this page so the Suppo...

6 years ago | 0

Answered
Is This Concatenation Error a Bug?
(t and x come from a .mat file and are always equal dimensions and data types). Trust but verify. Set an error breakpoint and r...

6 years ago | 1

Answered
why does it get stuck in loop if?
In the part of your code that starts with the comment %inner nodes above intersection you have a while statement: while((Ny-d)<...

6 years ago | 0

Answered
Enquiry about the reason for the program not responding to the entered code
Are you copying the body of the function from this File Exchange submission into the Command Window? Note that the function requ...

6 years ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'diff'. How to solve the issue? Please help.
The inline function is not recommended. If you were writing a function to be evaluated in MATLAB, you should create an anonymous...

6 years ago | 0

Answered
finding x0 in ziggurat algorithm
So you want to know how to find the equivalents of the numbers 0.83, 1.17, 1.47, 1.78, and 2.18 in the plot on this post on Clev...

6 years ago | 0

Answered
Converting numeric elements to date
Depending what operations you need to perform, you may be able to keep your data as a datetime array without converting it to se...

6 years ago | 0

| accepted

Answered
Calling a variable using a function - basic
function c = rand_val rand_val = rand end When you call this function it will throw an error. You'd defined rand_val to retur...

6 years ago | 0

Answered
How to print the data in the indicated manner with indicating numbers ?
You're almost there. When you call string on a non-scalar double array, each element of the double array becomes an element of t...

6 years ago | 0

| accepted

Answered
Writing Functions that take inputs?
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free M...

6 years ago | 0

Answered
How can I use a for loop to create new variables?
There are many posts that say trying to create numbered variables like that is discouraged, yes. If you want to put all those p...

6 years ago | 1

| accepted

Answered
Indexing errors on sum
I'm guessing you've defined a variable named sum that's preventing you from calling the sum function. If my guess is correct cle...

6 years ago | 0

| accepted

Answered
What is wrong with my polyfit variable?
Most likely at least one element of your x data is non-positive. x = 0:10; y = x; p1 = polyfit(log(x), log(y), 1) % Warning a...

6 years ago | 0

Answered
timetable retime error - input timetable must contain unique row times
First, don't name a variable timetable. That already has a meaning in MATLAB. Second, at least two rows of your timetable (whic...

6 years ago | 0

| accepted

Answered
OpenPose Matlab: pertained network offline
I've reported this issue to the development staff.

6 years ago | 0

Answered
How to delete k in random n set number?
Use randperm to shuffle the numbers 1 through 20 and simply select the next element not yet chosen each time you need a random k...

6 years ago | 0

Answered
Frustrating matlab is.
Others have given you the answer. This problem involves just basic indexing in MATLAB, so I'm guessing you're relatively new to ...

6 years ago | 0

Answered
Compare two text files from MATLAB Command Window using FC Windows 10 file comparison command
Use the system function instead of the ! (bang) operator.

6 years ago | 2

| accepted

Answered
Extracting specific rows with different content from a large table array
Consider storing your data in a timetable, converting your MatDate variable into a datetime array and using table2timetable (or ...

6 years ago | 1

Answered
Matrix cos. Did I write the expression and correctly?
You can check your answer using the funm function in MATLAB.

6 years ago | 0

Answered
I did Exercise 3.1 by commenting the code. However while doing Exercise 3.2 onwards part (a) I am getting some errors. I had pasted my code below the pictures.
Your assignment instructs you to write a MATLAB function image_sample but you have written a MATLAB script image_sample. See thi...

6 years ago | 0

| accepted

Answered
How do I fix this ?
In addition to the output argument renaming others have suggested, as written you need to assign something to the output argumen...

6 years ago | 0

Answered
How to install DSP system Toolbox in an Offline Machine?
See this Answers post.

6 years ago | 0

Answered
Why is matlab busy?
i = 1+1; Did you mean to add 1 to i rather than adding 1 to 1? The length of r is greater than 2, so the condition of your ...

6 years ago | 0

| accepted

Load more