Question

How do I call functions with names generated by str2func, varargin, and input argument blocks?

I am building a piece of software which will require the user to write a few short functions of their own. The user will specify...

1 month ago | 1 answer | 0

Question

trouble switching/merging branches in git integration

I am using the git integration in a MATLAB Project and am running into an error. I need merge a branch back into the master bra...

2 months ago | 0 answers | 0

Question

MATLAB beeps on every keystroke in editor

Sometimes I will open a file in the editor, and every time I push down a key, I get a beep. This makes editing a document conta...

3 months ago | 0 answers | 0

Question

running live functions and having section breaks

Before the advent of Live Script, I created a lot of demonstrations using publish and I would always create the demonstrations a...

3 months ago | 1 answer | 0

Question

Github repository creation failed

I have a MATLAB Project (capital P) that I'm managing using git. I would like to upload it to github. It's my second such proje...

3 months ago | 0 answers | 1

Question

Rewriting pplane and dfield

This is not quite a question in the usual MATLAB Answers sense, but I am hoping that someone who looks at MATLAB Answers might b...

4 months ago | 0 answers | 1

Answered

What is the Project Icon file?

Answering my own question: I'm using a Mac. Any folder on a Mac that has a custom Icon contains a hidden file called "Icon\r" w...

What is the Project Icon file?

Answering my own question: I'm using a Mac. Any folder on a Mac that has a custom Icon contains a hidden file called "Icon\r" w...

4 months ago | 0

| accepted

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

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

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

8 months ago | 1 answer | 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 ...

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

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

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

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

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

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

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

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

7 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