Answered

"Icon" file in GitHub-managed MATLAB Project

I had not been actively editing so I was on the main branch. I just created a branch to experiment with removing this file and a...

"Icon" file in GitHub-managed MATLAB Project

I had not been actively editing so I was on the main branch. I just created a branch to experiment with removing this file and a...

11 days ago | 0

| accepted

Question

"Icon" file in GitHub-managed MATLAB Project

I am new to both "Projects" and collaborating via GitHub. In the past few months, I turned an existing project into a Project ...

11 days ago | 1 answer | 0

Question

What is the Project Icon file?

I am turning a project (lower case p) into a Project (upper case P). I just noticed a file in the directory called "Icon" alth...

3 months ago | 0 answers | 0

Question

How to organize a project?

This is more a general software engineering question than a MATLAB question, but it's about a MATLAB project, so here seems the ...

3 months ago | 1 answer | 0

Question

Shortcut to default line colors?

I can't remember how long ago MATLAB switched to the new default line color order. Overall, I much prefer the new colors. I'll n...

4 months ago | 1 answer | 0

Question

rotation of graph node labels

I am plotting some graphs using circular layout, for example plot(digraph([1 2 3],[2 3 1]),"layout","circle");axis equal The n...

5 months ago | 2 answers | 0

Question

Weird error message on startup

Running Matlab 2020a on a mac with catalina, I get this error message at startup Warning: Name is nonexistent or not a director...

6 months ago | 1 answer | 0

Question

add data to an existing object with a method not in @ directory

I have created a class of objects, and have stored the core methods for working with these objects in a directory whose name sta...

2 years ago | 0 answers | 0

Question

Where is the ellipticf function?

According to this MathWorks website: https://www.mathworks.com/help/symbolic/ellipticf.html Matlab has an incomplete ellip...

3 years ago | 1 answer | 0

Question

access to default line colors

Is there a way to easily specify a line color from the (relatively) new default line color ordering? What I'd like is to be able...

3 years ago | 2 answers | 0

Question

Overloading arithmetic on graphs or digraphs

I am solving some problems in "quantum graphs." Without getting into the detail, I have a directed graph, built as a MATLAB digr...

3 years ago | 2 answers | 0

Question

All edges attached to given node in a (di)graph

I have a simple and, I imagine, common question about working with graphs. Is there a built-in way to find all the edges pointin...

4 years ago | 1 answer | 0

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...

5 years ago

Question

Opening saved figures created using plotyy

I created some figures using plate and saved them as .fig files. Now, I'd like to modify the figures slightly, but they don't re...

5 years ago | 1 answer | 0

Question

read data from variables with names matching patterns

A student of mine saved a .mat file containing variables named x1, x2, ..., x50, y1, y2, etc. How can I write program that will...

6 years ago | 1 answer | 0

Question

error running mex on mac c-code

I'm trying to use a little bit of c-code in matlab. I'm running Matlab 2013B on OS X 10.8 and have Xcode 5.0. To figure this ou...

7 years ago | 0 answers | 1

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...

8 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. Example...

8 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...

8 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]; and ...

8 years ago

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...

8 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 ...

8 years ago

Question

Getting Mac Menubar in the right spot in 2012B

I just installed 2012B on a Mac, running Lion. I know that Matlab can now put its menus in the proper place in the mac menu bar,...

8 years ago | 1 answer | 0

Question

mlint across multiple functions in separate files

I use mlint a lot. I think it operates only on a single file. Suppose I have two functions foo.m which calls bar.m. I'd like ...

9 years ago | 2 answers | 0