回答済み
How to define row and column of element in grid layout while initializing
The point you're missing is that the Layout argument is expected to be a struct. Since Layout.Row is not a valid Matlab field na...

2年以上 前 | 1

| 採用済み

回答済み
how do i change the dicom file's brightness and contrast with slider bar in app designer
You should use caxis instead. That way you can adjust brightness and contrast directly without having to redraw the image every ...

2年以上 前 | 0

回答済み
How to make normal distribution curve from the bar chart?
Your data resolution is too low now that you have this bar chart. Unless you have the actual underlying data it is not possible ...

2年以上 前 | 0

回答済み
From a structure with "n" fields which each are a vector, I want to make a vector of length "n" made of the 3rd value of each vector of my structure.
The last solution you mention would be my suggestion, except you don't need the (:). file = struct('dist',{[1 2 3];[4 5 6]}); ...

2年以上 前 | 0

回答済み
How can I write duplicate files that are equal to or greater than 1GB to a excel file in Matlab?
You can use the unique function instead of your double loop (which could be improved by starting the second at (i+1) instead of ...

2年以上 前 | 1

| 採用済み

回答済み
How can I use a for loop to interpolate to a certain number of points, and remove NaNs?
For the second part it is easy enough with a few cell vectors as an intermediate step (if you want to store the separate element...

2年以上 前 | 0

| 採用済み

回答済み
Creating an inputted number of randomised arrays
Depending on what you want to do next, you can either create a cell vector in a loop, where each element is a matrix, or you can...

3年弱 前 | 1

| 採用済み

回答済み
histcounts do not provide a reasonable output
With Matlab you generally don't have to be confused about functions. The documentation is one of the major advantages of Matlab ...

3年弱 前 | 0

| 採用済み

回答済み
Changing line colors in nested for loop not working
Why are you using eval? There is no real reason you should need it. Same goes for length: what you actually mean is numel (or pe...

3年弱 前 | 0

回答済み
Portable version of Matlab
Besides some trickery with a networked license, it is very likely against the license agreement to have a portable Matlab instal...

3年弱 前 | 0

回答済み
How to access data of regexp output (without temporary variable)?
If you insist on a single line, you can even use subsref to index the result of regexp. That will make your code hard to read an...

3年弱 前 | 1

回答済み
How to create a column vector corresponding to number of rows of matrices using for loop?
You should always load to a variable. Then it is a lot easier to see where your variables come from. For this case I expect you ...

3年弱 前 | 0

| 採用済み

回答済み
How to generate randomly placed circles and assign them a function-defined value
Just a clarification: M is not a function here, but a variable. Otherwise your code as posted would not work. Putting this in a...

3年弱 前 | 0

| 採用済み

回答済み
Using App Designer, saving (and loading) data from the Edit Fields of the GUI to a file?
Your loading function needs to load the file, and then set the values of the fields. It currently only does the former. A mat...

3年弱 前 | 0

| 採用済み

回答済み
How to save a function handle to a .m file
I forgot the name of function, but a few years ago, a function was introduced to capture the output to the command window to a v...

3年弱 前 | 1

| 採用済み

回答済み
App designer hide/show line graph on axes
And set(B, 'visible', 'off');?

3年弱 前 | 1

回答済み
How do I repair the eror?
You need to make sure each element of the cell array is a char vector. Since currently the second one is a cell, you need to unp...

3年弱 前 | 0

回答済み
How can I get a user to input a number which is not already
What you need to do, is to put your input statement at the start of the while loop, and then you can use ismember instead of a l...

3年弱 前 | 1

| 採用済み

回答済み
Under Linux, how do I get a menu of figure windows so I can click to raise one window?
If using a code solution is fine, you can use this: % Create figures with names f1=figure; f1.Name = 'foo'; f2=figure; f2.N...

3年弱 前 | 0

| 採用済み

回答済み
New version of sqlite3 AddOn doesn't support NULL any more
First the reproduction steps in a MWE: % https://www.mathworks.com/matlabcentral/fileexchange/68298-sqlite3 db=[tempname '.db'...

3年弱 前 | 0

| 採用済み

回答済み
Is there a way to append all arrays nested in a table without looping?
Something like this should work: t = table({19;17},{rand(100,1);rand(100,1)},'VariableNames',{'Umean','d'}) D=cell2mat(t.d); ...

3年弱 前 | 1

回答済み
Help increasing the speed of a piece of code
It sounds like a convolution would be perfect here. kernel=ones(3,3); kernel(2,2)=0; kernel=kernel/sum(kernel(:)); ...

3年弱 前 | 0

| 採用済み

回答済み
set of vectors from some elements?
Do you need all permutations in one array? Then you can use the perms function. Note that the array size quickly grows with the ...

3年弱 前 | 1

回答済み
How to construct a standard plot on MATLAB with excel data?
If you have trouble with Matlab basics you may consider doing the <https://www.mathworks.com/support/learn-with-matlab-tutorials...

3年弱 前 | 0

回答済み
App desginer: how to use the text field (numeric) values as veriables to xlim
The reason you don't see anything change when you include the if statement is probably because you didn't include an else statem...

3年弱 前 | 0

| 採用済み

回答済み
I want to call slidervaluechanging for 3 different sliders in order to change the panel color background. Is there a simple way to do this?
You need to specify the index somewhere (use a different one for each slider). Then you can retrieve the current color, change o...

3年弱 前 | 0

| 採用済み

回答済み
compare variable with different data types
I use the function below. Since loops are fast, I just loop through all the options. I use this for input validation, so this o...

3年弱 前 | 1

回答済み
Opening a GUI from another GUI with a delay in App Designer
I suspect the new GUI is opened because Matlab is unable to store the anonymous function without creating that new GUI. What ...

3年弱 前 | 0

回答済み
How could I see the values of global variables used in App Designer?
You can use eval to retrieve the value. You should not be using eval, but the same goes for global variables. Especially with...

3年弱 前 | 0

回答済み
¿Is it possible to run a Matlab code on a computer that does not have Matlab installed?
I'm aware of these options, each with their own downsides: * Matlab Online will be the most consistent * If you have Compi...

3年弱 前 | 0

さらに読み込む