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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 2

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

Resuelto


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

casi 14 años hace

Cargar más