답변 있음
get uiTable data when using it in a function
For general advice and examples for how to create a GUI, have look at this thread. If you want to stick with this setup you wil...

대략 4년 전 | 0

| 수락됨

답변 있음
Reading text file data with different data formats
I would suggest reading the text file as text, extract the header, and then parse the data with tools like textscan. (You can g...

대략 4년 전 | 1

| 수락됨

답변 있음
How do i resolve this error
You can resolve this error by making sure the dimensions agree. If you think this answer is unhelpful; it is. If you want a mor...

대략 4년 전 | 0

답변 있음
CELL2MAT does not support cell arrays containing cell arrays or objects.
I would suggest using this instead of the entire if statement: ax=[varargin{:}]; This will happily accept empty inputs, ...

대략 4년 전 | 0

답변 있음
Create a function handle sum of other function
Your anonymous function will become more opaque and I expect the performance to suffer, but this will work: fun=@(x) A; ...

대략 4년 전 | 0

| 수락됨

답변 있음
How to select files based on the name?
First you need to retrieve all file names with dir. Then you can split the file name on the dots with the split function. After ...

대략 4년 전 | 0

답변 있음
How do I install Guide to AppDesigner Migration Tool without the internet?
Since in principle you should only need this migration tool once per project, wouldn't it be feasible to migritate on the online...

대략 4년 전 | 0

답변 있음
How do I make 3D sphere for convolution?
If you want a sphere in a 3D array, you should probably do something like this: array_width=21;%must be odd radius=5;%must be ...

대략 4년 전 | 0

| 수락됨

답변 있음
Saving multiple files in 'xlsx' format
Use sprintf to create a filename based on your variables. for one = 1:numel(p) for two= 1:numel(o) T = table(c{1,...

대략 4년 전 | 0

| 수락됨

답변 있음
how to add numbers above the tips of a bar chart
b=[1 2 3]; labels=arrayfun(@num2str,b,'Uni',0); bar(b) text(1:numel(b),b+0.1,labels)

대략 4년 전 | 0

| 수락됨

답변 있음
store strings and numbers into an array
I would suggest create a struct array: data=struct('Name',{'Peter','Fabian','Mary'}); [data.Age]=deal(28,21,32);%just to show ...

대략 4년 전 | 0

| 수락됨

답변 있음
how to give range in xlsread using edit text field in app designer?
Assuming app.Columneditfield.Value is already a char, you can simply create the range like this: Range=[app.Columneditfield...

대략 4년 전 | 1

| 수락됨

답변 있음
for loop index variable change inside the loop[
Once a for loop has started you can no longer change the expression it is based on. You will have to rewrite your for loop as...

대략 4년 전 | 0

답변 있음
How to test montonousness of X Y data
I would sort x, use the second output of sort to change the order of the y elements. That reduces the problem to the question wh...

대략 4년 전 | 0

| 수락됨

답변 있음
how do i automatically select the kernel size like 5*5, 7*7... instead of the 3*3 in the code below
This is a terrible way to write a median filter. Since the use of imnoise indicates that you already have the Image Processing t...

대략 4년 전 | 0

답변 있음
Every program in newer versions of Matlab runs slower, Why?
Some things get slower, some things get faster. It really matters what exact functions you're calling. If I write a function wh...

대략 4년 전 | 1

답변 있음
Saving values from a for loop in a table
Your index only depends on j, so it will overwrite all previous results. Why don't you use a rectangular array to hold the maxi...

대략 4년 전 | 0

답변 있음
Why is a regular expression used in this code?
This syntax is designed to fool the Cody score calculator to think it is using only a few non-complex function calls. In ever...

대략 4년 전 | 5

| 수락됨

답변 있음
how i can solve my the mistake of my code?
If you look at the original, you will see that there isn't a space between the numbers, so if you remove the space after the %d ...

대략 4년 전 | 1

| 수락됨

답변 있음
Expected nsemitones to be one of these types: single, double
The reason this code works when you use input (with str2double) is that you have a number. The code you posted uses the handle ...

대략 4년 전 | 0

답변 있음
best way to update items in arrays value based on -1 and 1
Use find to find out how many leading zeros you have. Then set all zeros to 1 and use cumprod. Then set the leading zeros as req...

대략 4년 전 | 0

답변 있음
Setting Position of uiaxes within uipanel
For automatically updating positions you should set the unit property to normalized. As for the elements not being fully init...

대략 4년 전 | 0

| 수락됨

답변 있음
addpath(cd) returns name is nonexistent or not a directory
What do you expect to happen when you call cd without any input? It looks like you actually intend to use addpath(pwd).

대략 4년 전 | 0

답변 있음
count even numbers of a matrix
This sounds a lot like homework. What did you try? I think you will be able to do it yourself if you read the documentation for ...

대략 4년 전 | 0

답변 있음
how to add empty in double array xxx = [ NaN 2 3 4 NaN]....Expected Value [ '' 2 3 4 '' ]
That is not possible. You will either have to use a cell array, or remove the values entirely. {'',2,3,4,''} [2,3,4]

대략 4년 전 | 0

답변 있음
Change the range of an array
Essentially your question is this: Given an array A with values ranging between 200 and 1000 How to find p0 and p1 such that B...

대략 4년 전 | 0

답변 있음
Where can I find the directory for things like '*.xls', '%04df' or something?
I would personally go the easy route and merge the two separate structs, but you could try this: xlsFiles = dir(fullfile(folder...

대략 4년 전 | 1

답변 있음
why matlab tells me this?
Lets take a third power as example. A is n by m A^3 = A*A*A = [n x m]*[n x m]*[n x m] To be compatible, adjacent sizes must b...

대략 4년 전 | 0

| 수락됨

답변 있음
in GUI how can I make a text box to be multiline?
You should not be using GUIDE. See <https://www.mathworks.com/matlabcentral/answers/483657-how-to-create-a-gui this thread>. ...

대략 4년 전 | 0

| 수락됨

답변 있음
Hello, I keep getting an error about undefined unary operators. I don't understand this error and I don't know what else I am missing.
I would suggest splitting up K in smaller parts. Currently it is extremely easy to make a mistake, and it is about as hard to sp...

대략 4년 전 | 0

| 수락됨

더 보기