Answered
How to read multiple text files and build a 3D matrix?
One way to read multiple text files is with a datastore. See this post for more details. It is unclear to me how (or why) you'd...

6 years ago | 0

| accepted

Answered
How to Change Marker Size in a .fig MATLAB File?
Yes, you can use the property inspector. Open the fig file in MATLAB Click on a marker to select them Open the property inspe...

6 years ago | 1

| accepted

Answered
Find the amount of prime numbers between two numbers by using only length and primes
Yes, it is. Consider what primes returns: Prime numbers less than or equal to input value. If I can find out the number of prim...

6 years ago | 0

| accepted

Answered
My university provides license for MATlab. Currently I am using R2018a. How can I update to the latest version?
This will vary school to school. Your best option is to look for the instructions your school's software management group provid...

6 years ago | 0

Answered
zyBooks MathWorks Learning Tool: Submission waiting to be recorded indefinitely
The OP was misinformed. Any issues encountered in a Zybook should be escalated through Zybooks directly, not MathWorks. The err...

6 years ago | 0

Answered
Creating Histogram using .mat file
I suspect your don't really want to create 1000 histograms. You don't need a for loop. Try histogram([a(1:1000).time])

6 years ago | 1

| accepted

Answered
changing string in a for loop
for n = 1:100 str = sprintf("ID_%02d",n); end

6 years ago | 0

Answered
Why the third else if condition.. where i==1 && j==m went unexecuted
You want the third condition to execute the i==1 and j==4. However, this also meets the conditions of the first elseif: elseif...

6 years ago | 1

| accepted

Answered
[B,TF] = rmoutliers(A,method) on older MATLAB version (2016) ?
It is 32x1 because you are using linear indexing. This happens when you index an array with a single index (even though that ind...

6 years ago | 0

| accepted

Answered
How to implement plagiarism check in Matlab?
How will you be grading their submissions? If you are grading their code manually, you may be able to spot cheating on your own....

6 years ago | 1

Answered
save video in matlab
I would try using the writeVideo function.

6 years ago | 0

Answered
How to display Live Editor output in multiple lines?
You can see the Display Output options here. If you are not using Inline, try that. I am not aware of a way to wrap an equatio...

6 years ago | 0

Answered
MATLAB Onramp 13.2 Task 2 error
It clearly happened, as you have a screenshot, but I can't reproduce it. Try clicking the Reset link and solving again.

6 years ago | 0

Answered
Error on uninstalling matlab
First try following the uninstall instructions given here. If that still doesn't work, try the suggestions given here. These in...

6 years ago | 0

Answered
Simplify Boolean/logical expression
You could try using the "Steps" name-value pair S = simplify( ((a|b) | a) & (a|c) ,"Steps",50)

6 years ago | 1

Answered
Importdata incorrectly reads csv file
Try importing your data interactively using the Import Tool. There, you can set data types, data ranges, etc. This video may be...

6 years ago | 0

Answered
readtable function in 2020a not functioning the same as older versions?
My experience is that readtable is able to read in more types of data automatically in 2020a than in 2018b. Could you share more...

6 years ago | 0

Answered
How do I plot by categroy group?
There is likely a better way to do this, but here is how I could do it. I've modified your code slightly to take advantage of MA...

6 years ago | 0

| accepted

Answered
Maximum size of File upload in MATLAB Grader?
A couple options that come to mind Upload a zip file. This does mean part of the solution will have to be unzipping the file. ...

6 years ago | 1

| accepted

Answered
Global Threshold on the Excel File
I'm assuming you've loaded the file into MATLAB. Use logical indexing to set any value less than 0.04 equal to zero. Data(Data<...

6 years ago | 0

| accepted

Answered
Help with gmdistribution and feeding model into function
I think the issue is you are trying to use the MATLAB function gmdistribution to create the input for the file exchange function...

6 years ago | 0

Answered
Creating array using other arrays and logical conditions.
You have specified the index using a single array rather than a value for rows and a value for columns. In addition, your array ...

6 years ago | 0

| accepted

Answered
Index exceeds the number of array elements (210)
The (210) indicates the variable you have tried to index contains 210 elements. Check your values of i and t, and the number of...

6 years ago | 0

| accepted

Answered
Find multiple values closest to zero
Here's something that works with your sample data. ind = find(sign(values(1:end-1))~=sign(values(2:end))); ind = ind + double(...

6 years ago | 0

Answered
How to subtract one table with another and then plotting the difference
The result of this code is a matrix, not a table. You haven't specified X and Y, so I'll assume the first column is X and the se...

6 years ago | 0

| accepted

Answered
How to plot minima and maxima of two matrices
The four lines of code you shared each check a different condition. max value in each row of RAH_In1 but only considering value...

6 years ago | 1

| accepted

Answered
vector problem , Suma de vectores
Con su ejemplo, no necesitas B. Parece que el vector R es el vector A, pero los valores de 0 han sido cambiado a 2. Es esto lo q...

6 years ago | 1

| accepted

Answered
How to import data from attatched csv file?
You could try using the Format name-value pair. You might need to read about it in textscan for the specifics of how it works. T...

6 years ago | 1

| accepted

Answered
Is it possible to access a cloud of a scatter plot in Matlab
How did you create the yellow area? If you know the boundary, you could use inpolygon.

6 years ago | 0

| accepted

Answered
Beginner: Using SURF Function, Error: Z must be a matrix, not a scalar or vector.
A surface is a 3D plot. All your X values are repeated for every Y value, and vice versa, meaning the surface is 5001 x 5001. Su...

6 years ago | 1

Load more