문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

13년 초과 전

답변 있음
xLabelTick and Save graph button
1. eps is a vector format and thus does not have a resolution. 2. change: datetick('x','HH:MM') into: datetick(...

13년 초과 전 | 0

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

13년 초과 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

13년 초과 전

문제를 풀었습니다


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

13년 초과 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

13년 초과 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

13년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

13년 초과 전

문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

13년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

13년 초과 전

답변 있음
Having a problem building a graph in a GUI. No errors in com. window
You have double quotes in the callcabk around updateAxes, that might be the problem. try set(handles.timeStepList, 'Callbac...

13년 초과 전 | 0

답변 있음
How can I pass options from popupmenu to another callback function?
You don't need to pass the selected option when the selection is made in the popup. The easiest is simply read out the popup val...

13년 초과 전 | 0

| 수락됨

답변 있음
how to implement Push Button right click with options like open & close using matlab guide
I guess you want to make a context menu: http://www.mathworks.nl/help/techdoc/ref/uicontextmenu.html If you use guide, I'd...

13년 초과 전 | 1

답변 있음
What is the order of the files picked in uiget files, when a folder is selected and listed using dir, as i use it to paste in an order in powepoint every time i get a different order being pasted
Simply sort them yourself? [files path] = uigetfile({'All files (*.*)'},'Select files'MultiSelect','on'); filesSorted = ...

13년 초과 전 | 1

| 수락됨

답변 있음
passing the values between two guis
You can use setappdata and getappdata. This is nicely explained here by Doug: http://www.mathworks.com/matlabcentral/filee...

13년 초과 전 | 0

답변 있음
How to add a property to the handles?
So your code is: handles.edit1 = 0; This way you don't create an object, you simply add a field to the structure "handle...

13년 초과 전 | 0

| 수락됨

답변 있음
how to load variables in the workspace
You can read the mat file with data = open(fullfile(ruta,nom)); the contents of your file will be stored in struct "data...

13년 초과 전 | 0

답변 있음
help required urgently about this error "REFERENCE TO NON EXISTENT FIELD"
This is probably due to using colormap without axes handle. try: colormap(handles.axes3,handles.ycbrmap) or see: doc c...

13년 초과 전 | 0

답변 있음
help required urgently about this error "REFERENCE TO NON EXISTENT FIELD"
you have to save the handles structure at the end of the callback if you want to store something in there. At the end of pushbut...

13년 초과 전 | 1

| 수락됨

답변 있음
Memory Usage
You can use the profiler with memory stats. see http://undocumentedmatlab.com/blog/undocumented-profiler-options/

거의 14년 전 | 0

답변 있음
datatransfer between 2 GUIs
Use setappdata and getappdata. This is an easy way to share data between GUIs, without copying the data. Watch this excellent...

거의 14년 전 | 0

| 수락됨

답변 있음
How do I lock the current directory while a GUI-based program is running?
Why don't you simply add your path to the MATLAB search pad? Then you'll never have this problem. If you want, you can even add ...

거의 14년 전 | 1

답변 있음
Pop UP menu in GUIDE
feval uses function handles rather than the name of the function. But I think you don't need feval at all. If your functions are...

거의 14년 전 | 0

답변 있음
Pass variables's name and their values from gui to workspace
Use the function assignin, and store your variables on the 'base' workspace. For instance, to store variable x: x = 1:10; ...

거의 14년 전 | 0

| 수락됨

제출됨


subplot2plot
subplot2plot copies every subplot tile to a separate figure window

거의 15년 전 | 다운로드 수: 1 |

0.0 / 5
Thumbnail

제출됨


loadFields from mat files
Loads a field from a number of mat files.

거의 15년 전 | 다운로드 수: 1 |

0.0 / 5