Answered
How to convert to C a function with variable fields in the input?
You can send a variable that contains full path to the file as an input argument and within the function use load command. Edit...

5 years ago | 0

| accepted

Answered
Add legend to mutiple figures in a loop with conditional
Just an example % This might be better way to do the plotting fig1 = figure(1) ax = axes('Parent', fig1) plot(ax, x,y); leg...

5 years ago | 1

Answered
Executing save command in App triggers warning "Unable to save App Designer app object"
It looks like, when one passes an app property into an anonymous function, one gets mentioned warning and wants to save app.x a...

5 years ago | 0

| accepted

Question


Executing save command in App triggers warning "Unable to save App Designer app object"
Hi guys, As the title states, I am getting this error while trying to save propererties/variables in App Designer. Full warnin...

5 years ago | 2 answers | 0

2

answers

Answered
save images in a new folder
saveas(gcf, sprintf('/folder/S0000%d.bmp', f))

5 years ago | 0

Answered
App Designer Plot having error
It stated an error "Error is 'reference to a cleared variable app." Don't use clear all, neither clc in this and most of the ca...

5 years ago | 1

| accepted

Answered
Disable app while calculating
uiprogressdlg is also a good option, as it "overlays" an uifigure and makes anything behind it unable to be pressed (I did not p...

5 years ago | 0

Answered
App designer: How to select multiple folders
Depending on what's inside of data, here's a suggestion: Path = dir('**/*.csv'); % generates structure that contains csv files ...

5 years ago | 0

| accepted

Answered
how export uifigure with exportgraphics()
This works https://ch.mathworks.com/help/matlab/ref/exportapp.html

5 years ago | 0

| accepted

Answered
Combining two separate arrays into singular payoff matrix
I could suggest this C = cat(3, A, B) >> C C(:,:,1) = 4 2 2 0 C(:,:,2) = 4 2 4 2 % ...

5 years ago | 0

Answered
App Designer - Button group
Create property that takes Method and Contrast level values. Create a callback for button group (method and image enhancement o...

5 years ago | 0

Solved


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

5 years ago

Solved


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

5 years ago

Solved


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

5 years ago

Answered
Rename files in the folder
movefile movefile source destination movefile 'B00001.im7' 'P00001.im7' % or supply full path to the files

5 years ago | 0

| accepted

Solved


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

5 years ago

Solved


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

5 years ago

Solved


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

5 years ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

5 years ago

Solved


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

5 years ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5 years ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

5 years ago

Solved


Matlab Basics II - 3 Dimensional Arrays
Assume x is a 3D array with n pages, representing students in a class, for each student (page in the array, the 3rd dimension), ...

5 years ago

Solved


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

5 years ago

Solved


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

5 years ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

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

5 years ago

Solved


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

5 years ago

Answered
Extracting numbers from mixed string
Variable str is actually a char array, you can get last 4 characters before dot by newstr = str(end-7:end-4) To get it in do...

5 years ago | 0

Question


Passing an UIAxes handle to PlotFcn
Hi guys, I am having hard time wrapping my mind around anonymous functions. I am running an optimisation problem, and I would l...

5 years ago | 1 answer | 0

1

answer

Load more