Answered
How to add annotations to a plot by accessing data from a table?
Use the text function. You can use sprintf to build the text to display on the plot. If you need it to be automated, use logic...

7 years ago | 0

Answered
Unable to save files in MATLAB Online
The file system for MATLAB Online is MATLAB Drive. Try logging in to drive.matlab.com and see if your files are showing up there...

7 years ago | 1

Answered
long and lat map plot
Does this post about creating a plot from an nc file help?

7 years ago | 0

| accepted

Answered
Error opening Excel file in Matlab using actxserver
I think you need to include the entire path in the filename. file = 'C:\user\me\Documents\example.xls'; excel = actxserver('Ex...

7 years ago | 1

| accepted

Answered
Regarding matlab cody solutions
Cody is meant more as a game. It offers a chance to solve various challenges and then compare your solution to what others with ...

7 years ago | 1

| accepted

Answered
Axis labels for subplot figure
Does the solution given here work for you?

7 years ago | 0

Answered
Copy and Paste Matrix into Word
Your code for doing this programmatically is close. I'd suggest using sprintf to create the formatted strings, then write that t...

7 years ago | 0

| accepted

Answered
Copy and Paste Matrix into Word
There is a quick and easy way to get it to Word. If you are using a live script, from the Live Editor tab select Save > Export t...

7 years ago | 0

Answered
reading tables from .doc word file
Here's some starter code for you. Be aware that this code assumes that, if there are multiple tables, they are all the same size...

7 years ago | 0

| accepted

Answered
How can I get access to MATLAB online for an EdX-course?
There is a free license provided to all students enrolled in the course. Follow the instructions on the Software page, located i...

7 years ago | 1

| accepted

Answered
Problem with retime function
It can be done in pieces. retime applies the same method to all timetable variables. You'll need to create new timetables (only ...

7 years ago | 0

| accepted

Answered
Does try,catch delete variables from the workspace?
I'm curious if you are aware of MATLAB Grader. This could potentially spare you a lot of work.

7 years ago | 0

Answered
Is there a way to forbid using the "\" command in MATLAB Grader submissions?
There is no built-in way to prevent student solutions from using "\".

7 years ago | 1

| accepted

Answered
how to block reference files for teachers only?
Why do you want to upload a file? Why not just add your solution as the reference solution? Students will not be able to view th...

7 years ago | 2

| accepted

Answered
Standalone GUI application gives error at uigetfile. But if run from matlab, the script works fine
Looks like you have an incorrect function name. What is "I will" supposed to be? fprintf('== Came to the pushbuttonBrowse_Callb...

7 years ago | 0

Answered
How do I make a widget initialize as "invisible" in App Designer?
Set their visibility property to "off". In Design View, select the component, and in the component browser (on the right) under...

7 years ago | 1

Answered
How to assign a callback to a gui element created at runtime
You're close. I see two errors. 1. "Not enough input arguments" is because you are not passing 2 inputs to your callback functi...

7 years ago | 1

| accepted

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

7 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

7 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

7 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

7 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

7 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

7 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

7 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

7 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

7 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

7 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

7 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

7 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 years ago

Load more