Feeds
답변 있음
How can i get one GUI to trigger another GUI?
What you could do is <http://nl.mathworks.com/help/matlab/ref/handle.addlistener.html add a listener> in GUI_2 to an object in G...
How can i get one GUI to trigger another GUI?
What you could do is <http://nl.mathworks.com/help/matlab/ref/handle.addlistener.html add a listener> in GUI_2 to an object in G...
7년 초과 전 | 0
| 수락됨
질문
All iterative solvers seem to fail for 3D poisson eqn
I have written a function that sets up a sparse matrix _*A*_ and RHS _*b*_ for the 3D Poisson equation in a relatively efficient...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Optimization using lsqnonlin on very distinct data sets that depend on the same variables
I am working with some large data sets ( _N_ rows of data with 1 parameter varied, each consisting of _M_ points) for which it i...
거의 8년 전 | 답변 수: 0 | 0
0
답변질문
Diary does not print backspace ('\b') properly - alternative/solution?
I have a bunch of scripts + functions that output their progress to the command window. At the same time I would like to write t...
대략 9년 전 | 답변 수: 3 | 0
3
답변답변 있음
Sorting an array of strings based on number pattern
Ok, I should've searched better... Problem solved with a <http://www.mathworks.com/matlabcentral/fileexchange/47434-natural-o...
Sorting an array of strings based on number pattern
Ok, I should've searched better... Problem solved with a <http://www.mathworks.com/matlabcentral/fileexchange/47434-natural-o...
대략 9년 전 | 0
| 수락됨
질문
Sorting an array of strings based on number pattern
I'm looking for an _efficient_ way to solve the following issue: Typically I read out all files in a directory that match a c...
대략 9년 전 | 답변 수: 2 | 1
2
답변문제를 풀었습니다
2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...
9년 초과 전
문제를 풀었습니다
Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...
9년 초과 전
문제를 풀었습니다
Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...
9년 초과 전
문제를 풀었습니다
Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...
9년 초과 전
문제를 풀었습니다
Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]
9년 초과 전
답변 있음
Output of changing number of columns
I believe a simple *repmat* should do the trick: fprintf(out, repmat('%14f ',[1,size(array,2)]), array);
Output of changing number of columns
I believe a simple *repmat* should do the trick: fprintf(out, repmat('%14f ',[1,size(array,2)]), array);
9년 초과 전 | 2
답변 있음
I'm using a for loop to create a new random variable X with range [0 1], I want the forloop to ignore values above 1 and iterate untill all the values are in range.
Change your *for*-loop to a *while*-loop if you want to keep looping. I also believe that you stored your data incorrectly, as ...
I'm using a for loop to create a new random variable X with range [0 1], I want the forloop to ignore values above 1 and iterate untill all the values are in range.
Change your *for*-loop to a *while*-loop if you want to keep looping. I also believe that you stored your data incorrectly, as ...
9년 초과 전 | 0
| 수락됨
답변 있음
read a mat file once it appears in the folder?
One approach you could use is to write the filenames of all the current .mat files to e.g. a text document. You can import the c...
read a mat file once it appears in the folder?
One approach you could use is to write the filenames of all the current .mat files to e.g. a text document. You can import the c...
9년 초과 전 | 1
| 수락됨
답변 있음
Help with 'Variable 'sa' is undefined on some execution paths'
You have 6 if-statements. Could it be that your x falls out of the ranges you've specified? Just for clarity - your total ran...
Help with 'Variable 'sa' is undefined on some execution paths'
You have 6 if-statements. Could it be that your x falls out of the ranges you've specified? Just for clarity - your total ran...
9년 초과 전 | 0
답변 있음
Collecting a key press
It would be good if you provide us with a snippet of the code you are using right now. With the current information provided,...
Collecting a key press
It would be good if you provide us with a snippet of the code you are using right now. With the current information provided,...
9년 초과 전 | 0
| 수락됨
답변 있음
How to calculate the area of the green shaded region in MATLAB
Is it not possible to simply calculate the difference between your y-values and the straight line, take the mean of every 2 neig...
How to calculate the area of the green shaded region in MATLAB
Is it not possible to simply calculate the difference between your y-values and the straight line, take the mean of every 2 neig...
9년 초과 전 | 0
답변 있음
How to solve multiple equations dependent on each other?
Since you depend on your previous answers, you can simply loop through the equations and store the answers. x = ones(1,10);...
How to solve multiple equations dependent on each other?
Since you depend on your previous answers, you can simply loop through the equations and store the answers. x = ones(1,10);...
9년 초과 전 | 0
| 수락됨
답변 있음
why doesn't the function sigshift work when i use it for x(n) = 2x(n - 5) - 3x (n + 4).
Your function *sigshift* seems not to be a built-in function. Are you sure the function/directory it is located in is included i...
why doesn't the function sigshift work when i use it for x(n) = 2x(n - 5) - 3x (n + 4).
Your function *sigshift* seems not to be a built-in function. Are you sure the function/directory it is located in is included i...
9년 초과 전 | 0
답변 있음
Is it possible to solve the equation in matlab without rearranging it??
Although I don't see why you would even bother to do it without rearranging, it is easily possible if you have the symbolic tool...
Is it possible to solve the equation in matlab without rearranging it??
Although I don't see why you would even bother to do it without rearranging, it is easily possible if you have the symbolic tool...
9년 초과 전 | 0
| 수락됨
답변 있음
How to delete repeated column in this matrix?
b = unique(a,'rows','stable'); b = 6.7747 15.1502 126 ...
How to delete repeated column in this matrix?
b = unique(a,'rows','stable'); b = 6.7747 15.1502 126 ...
9년 초과 전 | 3
| 수락됨
답변 있음
Find unique values in a sequence containing at least 3 elements
u = unique(x); a = histc(x,u); y = u(a>=3); This should do the trick. First determine the unique values in the vector...
Find unique values in a sequence containing at least 3 elements
u = unique(x); a = histc(x,u); y = u(a>=3); This should do the trick. First determine the unique values in the vector...
9년 초과 전 | 1
| 수락됨
답변 있음
How to convert from Roman numeral to decimal
The easiest solution is to get yourself a suitable tool from the File Exchange. For example <http://www.mathworks.com/matlabc...
How to convert from Roman numeral to decimal
The easiest solution is to get yourself a suitable tool from the File Exchange. For example <http://www.mathworks.com/matlabc...
9년 초과 전 | 0
답변 있음
Index exceeds matrix dimensions, error problem
Your variable _look_ has a length of _eleimg_. You are trying to access some value between 1 and _Nx*Ny*L_ (which is equal to...
Index exceeds matrix dimensions, error problem
Your variable _look_ has a length of _eleimg_. You are trying to access some value between 1 and _Nx*Ny*L_ (which is equal to...
9년 초과 전 | 0
답변 있음
How do I make a cell of cells in a for loop?
Your variable _omt1_ is put inside the wrong loop. Right now it is overwritten for every iteration of _k_. What you should d...
How do I make a cell of cells in a for loop?
Your variable _omt1_ is put inside the wrong loop. Right now it is overwritten for every iteration of _k_. What you should d...
9년 초과 전 | 1
| 수락됨
답변 있음
WHAT does this mean?
This probably means that you are referring to something like d(3,3) while the variable _d_ does not exist. You might ...
WHAT does this mean?
This probably means that you are referring to something like d(3,3) while the variable _d_ does not exist. You might ...
9년 초과 전 | 2
| 수락됨
답변 있음
Find string (from table) in cell in matlab
If your cell array contains mixed datatypes, then _ismember_ indeed does not work. However, something like *find(strcmp('You...
Find string (from table) in cell in matlab
If your cell array contains mixed datatypes, then _ismember_ indeed does not work. However, something like *find(strcmp('You...
9년 초과 전 | 2
답변 있음
how do I select every single element of matrix except middle
If I understand you correctly, you could do something like this: A(A~=A(ceil(numel(A)/2))) or setdiff(A,A(ceil(nume...
how do I select every single element of matrix except middle
If I understand you correctly, you could do something like this: A(A~=A(ceil(numel(A)/2))) or setdiff(A,A(ceil(nume...
9년 초과 전 | 0
답변 있음
problem savind with diary function
If you add diary on after line 27, then it should work.
problem savind with diary function
If you add diary on after line 27, then it should work.
9년 초과 전 | 0
| 수락됨
질문
Interpolate arbitrary curve to regular (x,y) grid
Hello, I ran into a problem that I cannot seem to solve in an elegant way. Say, I have a spiral-like curve which I want to...
9년 초과 전 | 답변 수: 0 | 1