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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

Pregunta


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

más de 5 años hace | 2 respuestas | 0

2

respuestas

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

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

más de 5 años hace | 0

| aceptada

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

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

más de 5 años hace | 0

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

Cargar más