답변 있음
GUI creation
Respond to button-press callback: 1. Ask for input 2. Process input 3. Display output These are the functions for (1...

14년 초과 전 | 0

| 수락됨

답변 있음
error in evalfis..
Why don't you want to convert it to double? It's not like it's going to be huge. You don't have to replace your uint8 image ...

14년 초과 전 | 0

| 수락됨

답변 있음
Performance issue (CPU usage)
You have over 90GB of RAM???? Do you mean disk space? How much RAM do you actually have? I would say if you're running a 32...

14년 초과 전 | 0

답변 있음
MATLAB crash
Maximum limit of what? Memory? What are you doing with MatLab at the time it crashes? If your whole system crashes, the effec...

14년 초과 전 | 0

답변 있음
Flag command !!
You are never changing flag, so you are recursing indefinitely. Perhaps you meant to toggle the flag: else if (flag ==1)...

14년 초과 전 | 0

| 수락됨

답변 있음
how to build an interface between matlab and another software
One of the easiest to implement and most compatible ways to interface between different applications is to use files for communi...

14년 초과 전 | 2

| 수락됨

답변 있음
linking a graph to a pushbutton
You can use |subplot()| when you create your 5 graphs, and store the returned handles for each set of axes in your GUI. Then, w...

14년 초과 전 | 0

답변 있음
Avoiding loops for functions with arrays
Do you want a 1x10 matrix containing random values from M? There are a number of ways to do this. Using randint, you need to...

14년 초과 전 | 0

답변 있음
How to get exact position of text with respect to figure row, column in Matlab
I'm not sure about the general case, but here you could exploit the fact that your image bounds are not white: [y,x] = find...

14년 초과 전 | 0

답변 있음
dir function and importing data
In the loop, index _Direcname_ using curly braces instead of brackets: Direcname{i} = Direc(i).name; This is because you...

14년 초과 전 | 0

답변 있음
Executing two callbacks concurrently
Okay, assuming for a start that you can concurrently update a figure from two threads, you could try timers. The theory here ...

14년 초과 전 | 0

답변 있음
Can MATLAB tell me which gpu device is the one connected to the display?
Well, I couldn't help myself. I had to try it. Here's the result of running an EnumDisplayDevices test on my machine: Dev...

14년 초과 전 | 0

답변 있음
Find the difference between images
Why wouldn't you just subtract one from the other and use some statistics like mean, variance, etc?

14년 초과 전 | 2

답변 있음
??? Index Exceeds Matrix Dimensions (NEW TO MATLAB)
I would say it's due to the line: c = c + 32; The largest row index you have is A(27+c,8). The value of c gets up to '0...

14년 초과 전 | 0

답변 있음
matrix unions
You can use a real handy function called ismember() to test elements of A against elements of B. Then it's just a matter of ind...

14년 초과 전 | 1

| 수락됨

답변 있음
help using fgetl???
Is this an assignment for a course you are doing? Do you have to use strtok? Or can you use something like regexp or textsca...

14년 초과 전 | 0

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

14년 초과 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

14년 초과 전

답변 있음
Matrix dimensions do not match
You are calling sin() on an array. It returns an array. You are assigning that array to u(i), which is a single value in an ar...

14년 초과 전 | 0

| 수락됨

답변 있음
Image acquisition in matlab
If you're trying to emulate camera image acquisition using stored images, you could set up a timer to deliver a set of images at...

14년 초과 전 | 0

답변 있음
Convert 24 bit 2D array to 8 bit 3D (RGB) array
Try using bitwise operators like you would in C. These handily operate on a matrix, so you can split out your components like s...

14년 초과 전 | 0

답변 있음
creating multi-dimensional arrays from vectors
[~,~,b] = ndgrid([0 0], [0 0], a)

14년 초과 전 | 0

| 수락됨

답변 있음
Can MATLAB tell me which gpu device is the one connected to the display?
If you are running Windows, you could write a little MEX script that returns a list of devices and their status from the API cal...

14년 초과 전 | 0

답변 있음
Import Data using function
A = textread( 'mydata.dat', '', 'headerlines', 1 );

14년 초과 전 | 0

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

14년 초과 전

문제를 풀었습니다


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

14년 초과 전

더 보기