답변 있음
How to set values of specific data columns in a uitable
You need to extract the entire set of data from the uitable, edit it, then set it back as the uitable's data. tableData = ge...

10년 초과 전 | 2

| 수락됨

질문


Using a loop to print subplots
I want to print an 2x2 grid of plots on an axes in a GUI. I'd like for there to be multiple "pages" of these plots so a user can...

10년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Summing different set of arrays.
There's no need to use a for loop for this job. In any case, you've incorrectly set up a for loop. you need a loop control varia...

10년 초과 전 | 0

답변 있음
Alternative to waitfor? Need menu functionality using dialog but waitfor freezes everything until the GUI is closed.
Try changing the 'WindowStyle' property to 'normal'. The default for dialog() is 'modal', which means the dialog box created is ...

10년 초과 전 | 1

| 수락됨

답변 있음
Using a while loop on a Taylor Series?
You need to update your variable "count". Your function repeatedly calculates the value when count = 1, so naturally on the seco...

10년 초과 전 | 0

답변 있음
How do I reinstall the Student version of MATLAB which I previously had?
Yes, you can redownload it through your account. From the FAQ: How do I download software from mathworks.com? When you ...

10년 초과 전 | 0

답변 있음
Using a while loop to output a cube root?
You're not updating the estimate. Your function's loop repeatedly uses the user inputted value for intialEstimate rather than up...

10년 초과 전 | 0

질문


Tracking the coordinates of a drawn box on an axes in a GUI
I'm trying to make a GUI which plots data and allows the user to draw a box to zoom in on specific parts of the data. The code i...

10년 초과 전 | 답변 수: 0 | 0

0

답변

답변 있음
GUI Building Help - Layered Options
You'll need to edit your callback function for that popupmenu. function popupCallback(hObject,eventdata,handles) ind = g...

10년 초과 전 | 0

답변 있음
How to Save a raw array and delete NaN in a raw array
arr(cellfun(@(x) any(isnan(x)),arr)) = {[]}; Where arr is your input array.

10년 초과 전 | 1

| 수락됨

답변 있음
Plot with respect to real time
Determine what unit you're using for passed time. Assuming seconds, you can set your x-values to be xValues = 0:t; where ...

10년 초과 전 | 0

질문


Reusing deleted figure handle
I have a GUI which displays several axes (array of axes) that the user can switch between to plot on. Here's what the relevant p...

10년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
import data into uitable
set(handles.edit3,'data',raw); should resolve the issue. uitable accepts either numeric arrays or cell arrays if you want mixed ...

10년 초과 전 | 0

| 수락됨

질문


Find if any string in a cell array is contained in a string
I have a cell array of strings, for example, C = {'bob','jack','john'}. I have a test string T = 'The quick brown jack jumped...

10년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Combine the rows of an mxn cell array into a single mx1 cell array.
I have a cell array of a known number of columns but a variable number of rows. For example, I might have a 2x3 cell: A = {'h...

10년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Trouble saving a variable to a base GUI and accessing it in another.
I have 3 GUIs: # Gui1 is the base window. # Gui2 is a callback from a button in Gui1, gets user input, then attempts to save...

10년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

10년 초과 전

문제를 풀었습니다


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

10년 초과 전

문제를 풀었습니다


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

10년 초과 전

문제를 풀었습니다


Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

10년 초과 전

문제를 풀었습니다


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

10년 초과 전

문제를 풀었습니다


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

10년 초과 전

문제를 풀었습니다


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

10년 초과 전

문제를 풀었습니다


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

10년 초과 전

문제를 풀었습니다


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

10년 초과 전

문제를 풀었습니다


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

10년 초과 전

문제를 풀었습니다


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

10년 초과 전

문제를 풀었습니다


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

10년 초과 전

더 보기