Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

7 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

7 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

7 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Answered
Is there a catalog of pre-made problems available within MATLAB Grader?
In addition to the example problems (in a collection called Getting Starting with MATLAB Grader), the Introduction to Programmin...

7 years ago | 0

Answered
Cleaning of large files of data
Consider looking through this example in MATLAB. It might give you some ideas of how to handle the missing data.

7 years ago | 1

Answered
Grader: Your code could not run to completion. Check for errors in the code such as infinite recursion.
There is not currently a way to extend the time limit. All computation, including running the reference solution, student soluti...

7 years ago | 1

Answered
Graphical User Interface (GUI) in Matlab 2019a version.
In the command window, type appdesigner

7 years ago | 0

Answered
How can I exclude index values that are not present in all columns of a matrix?
Where your data is sorted in ascending order and, at least after a cursory examination of the data, no values are duplicated in ...

7 years ago | 0

Answered
Problem with contourf for scattered data
I didn't look into what is causing it, but inspecting Z has me thinking it might be roundoff error. Your Z values in this region...

7 years ago | 0

| accepted

Answered
Too long for installation
You can try the installation self help. If you still can't find a solution, create a technical support service request here.

7 years ago | 0

Answered
help with matlab error
It looks like your teacher is using MATLAB Grader for this problem. Because of variable scope in a function, MATLAB Grader is ca...

7 years ago | 0

Answered
What Matlab products should I buy as a student?
I think the link you want to look at is this: https://www.mathworks.com/store If you need help selecting the products you need...

7 years ago | 1

| accepted

Answered
Is there a way of creating a code so every time you save a figure as .mat it automatically also saves it as .bmp?
There is code you can add to your script/function so that once a figure has been created, it will save it. This is done with t...

7 years ago | 0

Answered
too many input argument while plotting date and time
Not sure exactly what your desired outcome is. However, why not use readtable, which loads your data into a table? It can handle...

7 years ago | 0

Answered
cut function and plot
plot(f(10:20)) If you would like to understand more, I highly recommend going through MATLAB Onramp. Chapter 5 address how to s...

7 years ago | 0

Answered
Sorting by multiple columns in a table with natural number sorting
Here's a simple example that works for me: pairNum = randi(15,1,200)'; trialNum = randi(15,1,200)'; data=table(pairNum, trial...

7 years ago | 0

| accepted

Answered
Editing a Colormap in MATLAB
My suggestion would be to create an image, set it as you want, save the colormap and color axis limits to a mat file. cmap = c...

7 years ago | 0

| accepted

Answered
Plots in App Designer
What behavior do you want? Just the two plots, or do you want to add the new plots to the old ones? If you only want the two, t...

7 years ago | 1

| accepted

Answered
Can't plot multiple figures in one axes in app designer
When you push the plot button, what error message are you getting? I suspect it says "Undefined function or variable 'on'." Try...

7 years ago | 1

| accepted

Answered
Trouble using retime to obtain 1 year of hourly average values from 15 years of hourly average values
There are several options to try if you want to explore. The functions varfun and rowfun work on all variables in a timetable. I...

7 years ago | 1

Answered
how to create a char
You don't have to create a file. carsmall is a mat file. Loading it loads all the variables you need into your workspace. I jus...

7 years ago | 0

Answered
How to get Matlab read my char file in excel?
dlmread shouldn't work. From the documentation: "(Not recommended) Read ASCII-delimited file of numeric data into matrix". "M =...

7 years ago | 1

Answered
How to resolve the error "Grader sent no response"?
As part of the Machine Learning course, you are granted access to MATLAB Online for free. Try submitting there. It will work.

7 years ago | 0

Answered
saving gray scale images in a 3D array
Not sure. It works for me. Check that all your images have the exact same dimensions. Also, sanity check your code. What happe...

7 years ago | 0

Answered
How to do the 3D vector plot from dataset?
Here's the code that will load and plot the data. opts = detectImportOptions("11x11x11 in 3D.xlsx"); opts.VariableNames = {'X'...

7 years ago | 0

Answered
Clear the content of axes under panel using push button
The code would be cla(ZDomainCascadedImageAX) Your issue is more likely related to variable scope. The pushbutton will have it...

7 years ago | 0

Answered
Loop through images in GUI
Unsure what is suppose to happen when transitioning 3->4, 6->7, and 9->1, but I'd do something like this function next_block_Ca...

7 years ago | 0

Answered
GUI imagesc not working
Need some more details about your variables if you want help. Are you seeing any error messages? Also, what is the size of ha...

7 years ago | 0

Load more