Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 1

Réponse apportée
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...

presque 6 ans il y a | 0

| A accepté

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

presque 6 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
save images in a new folder
saveas(gcf, sprintf('/folder/S0000%d.bmp', f))

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
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 ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
how export uifigure with exportgraphics()
This works https://ch.mathworks.com/help/matlab/ref/exportapp.html

presque 6 ans il y a | 0

| A accepté

Réponse apportée
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 % ...

presque 6 ans il y a | 0

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

presque 6 ans il y a | 0

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

Réponse apportée
Rename files in the folder
movefile movefile source destination movefile 'B00001.im7' 'P00001.im7' % or supply full path to the files

presque 6 ans il y a | 0

| A accepté

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

Réponse apportée
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...

presque 6 ans il y a | 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...

presque 6 ans il y a | 1 réponse | 0

1

réponse

Charger plus