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

14 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

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

14 years ago | 0

| accepted

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

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

14 years ago | 2

Answered
??? 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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Solved


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

14 years ago

Solved


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 years ago

Solved


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 years ago

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
creating multi-dimensional arrays from vectors
[~,~,b] = ndgrid([0 0], [0 0], a)

14 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
Import Data using function
A = textread( 'mydata.dat', '', 'headerlines', 1 );

14 years ago | 0

Solved


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 years ago

Solved


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 years ago

Solved


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

14 years ago

Solved


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 years ago

Solved


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 years ago

Load more