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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 2

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 2

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 0

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

Gelöst


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

fast 14 Jahre vor

Mehr laden