A répondu

NI-DAQ device working on some PCs but not others

Have you tried uninstalling completely and reinstalling the NI-DAQ Data Acquisition Toolbox ? I have encountered troubles with ...

NI-DAQ device working on some PCs but not others

Have you tried uninstalling completely and reinstalling the NI-DAQ Data Acquisition Toolbox ? I have encountered troubles with ...

plus de 2 ans il y a | 0

A répondu

How to remove more than K consecutive NaN values from row matrix

K=2; x = [1,2,3,4,NaN,NaN,NaN,7,8,9] ; indexes=strfind(isnan(x), true(1,K+1)); x(indexes)=[]; (edited according to the comme...

How to remove more than K consecutive NaN values from row matrix

K=2; x = [1,2,3,4,NaN,NaN,NaN,7,8,9] ; indexes=strfind(isnan(x), true(1,K+1)); x(indexes)=[]; (edited according to the comme...

plus de 2 ans il y a | 0

A répondu

Fit a line on a plot (imagesc)

contrast_line = diff(image); imshow(contrast_line); % shows the line thresholded_image=mean(contrast_line,3) > 240; % set here...

Fit a line on a plot (imagesc)

contrast_line = diff(image); imshow(contrast_line); % shows the line thresholded_image=mean(contrast_line,3) > 240; % set here...

plus de 2 ans il y a | 0

A répondu

Issues with plotting/best method

short answer: you are plotting points singularly so you can't see them short solution: pool them together in arrays then use th...

Issues with plotting/best method

short answer: you are plotting points singularly so you can't see them short solution: pool them together in arrays then use th...

plus de 2 ans il y a | 0

A répondu

readFrame is only reading half of of my video frames

it is probably because the frame rate of the video is detected as 15 fps v=VideoReader('crosswalk.mp4'); t=0; while hasFrame(...

readFrame is only reading half of of my video frames

it is probably because the frame rate of the video is detected as 15 fps v=VideoReader('crosswalk.mp4'); t=0; while hasFrame(...

plus de 2 ans il y a | 1

| A accepté

A répondu

moving an image across the screen along some vector path

try using circshift https://de.mathworks.com/help/matlab/ref/circshift.html

moving an image across the screen along some vector path

try using circshift https://de.mathworks.com/help/matlab/ref/circshift.html

plus de 2 ans il y a | 0

A répondu

How to segment wbc using k means clustering (I=4)

wbc ? white blood cells ? use regionprops (https://de.mathworks.com/help/images/ref/regionprops.html) on a binary image

How to segment wbc using k means clustering (I=4)

wbc ? white blood cells ? use regionprops (https://de.mathworks.com/help/images/ref/regionprops.html) on a binary image

plus de 2 ans il y a | 0

A répondu

Extract non-touching regions from image

You can try using imerode on the blobs. eroded_image = imerode(binary_image,[1 0 1; 1 0 1; 1 0 1]); % this will "shrink" the im...

Extract non-touching regions from image

You can try using imerode on the blobs. eroded_image = imerode(binary_image,[1 0 1; 1 0 1; 1 0 1]); % this will "shrink" the im...

plus de 2 ans il y a | 0

A répondu

how to plot a contour plot with excel data??

from the folder containing your excel file run the error about Z may be related to the fact that contour is waiting for a missi...

how to plot a contour plot with excel data??

from the folder containing your excel file run the error about Z may be related to the fact that contour is waiting for a missi...

plus de 2 ans il y a | 0

A répondu

How to label your peaks in descending order?

something like this ? my guess is that you won't need the sortedX because you are looking for peaks on your Y axis, right ? But...

How to label your peaks in descending order?

something like this ? my guess is that you won't need the sortedX because you are looking for peaks on your Y axis, right ? But...

plus de 2 ans il y a | 0

| A accepté

A répondu

Frequency response signal - resonce frequency

Based on the info provided I came up with this, you basically have to use the pwelch function and set some sampling rate (which ...

Frequency response signal - resonce frequency

Based on the info provided I came up with this, you basically have to use the pwelch function and set some sampling rate (which ...

plus de 2 ans il y a | 0

| A accepté

Question

losing CData after replotting image in subplot ?

I am making a montage of image panels, which look like BW but are not binary. I am then taking the CData of the montage and , ...

plus de 2 ans il y a | 1 réponse | 0

A répondu

How can I get a loop to process all ".avi" files in a folder, then produce the corresponding ".txt" and ".png" file?

clear; close all; [logfname, pathname] = uigetfile('*.mat','Pick any AVI file'); cd(pathname); %make list of AVI files in t...

How can I get a loop to process all ".avi" files in a folder, then produce the corresponding ".txt" and ".png" file?

clear; close all; [logfname, pathname] = uigetfile('*.mat','Pick any AVI file'); cd(pathname); %make list of AVI files in t...

plus de 2 ans il y a | 0

Question

control stepper motor using MATLAB and Arduino

I am trying to set up a stepper motor connected to an Arduino Uno with motor shield mounted on it. The motor works through Ardu...

plus de 2 ans il y a | 1 réponse | 0

Question

change table var type

How can I change the variable type in a table from double to string ? I found plenty of posts with the same issue but during i...

plus de 2 ans il y a | 2 réponses | 0

Question

can't install NI-DAQmx toolbox on MATLAB 2020b

Just got a fresh new installation of MATLAB 2020b with server license on campus. I am trying to install the Data Acquisition To...

presque 3 ans il y a | 2 réponses | 0

A répondu

How can i make vector lengths the same?

To solve a similar issue I use imresize First get the size of the image (with the function "size"), then resize image 2 accor...

How can i make vector lengths the same?

To solve a similar issue I use imresize First get the size of the image (with the function "size"), then resize image 2 accor...

presque 3 ans il y a | 0

| A accepté

Question

can I have independent analog output and digital counter output in the same session ?

Hi everyone I have a setup with both recording and stimulating electrodes. I would like to record the effects of a certain stim...

presque 3 ans il y a | 1 réponse | 0

A répondu

How to get pixel index / x,y coordinates of bright regions?

binarize the image, use regionprops, get the PixelList properties and use bwconncomp to identfy separate objects in the selecte...

How to get pixel index / x,y coordinates of bright regions?

binarize the image, use regionprops, get the PixelList properties and use bwconncomp to identfy separate objects in the selecte...

presque 3 ans il y a | 0

Question

How to match pixel locations to blob identity with region props

I am using regionprops to identify blobs in a binary image. I am able to detect a couple of blobs, get their centroids and all t...

presque 3 ans il y a | 1 réponse | 0

Question

how can I trace a ROI with fixed size on multiple images ?

I am trying to register images from a stack. they are frames taken from a video in which an object is moving. I tried to use the...

environ 3 ans il y a | 1 réponse | 0

A répondu

How do you send a digital signal as an output to NI DAQ system?

See the properties of your daq by typing its device name in command line. See how the channels are called and which types you ha...

How do you send a digital signal as an output to NI DAQ system?

See the properties of your daq by typing its device name in command line. See how the channels are called and which types you ha...

environ 3 ans il y a | 0

A répondu

Matlab crashes every time I copy a (even small) number of blocks to my Simulink model

Are you running Matlab with admin rights? I experienced similar issues when I wasn't. See if it works.

Matlab crashes every time I copy a (even small) number of blocks to my Simulink model

Are you running Matlab with admin rights? I experienced similar issues when I wasn't. See if it works.

environ 3 ans il y a | 0

A répondu

Using APP designer to communicate with the GIGE camera

You can combine VideoReader function with image binarization and extract "blobs" of a desired frame at a time. From the blobs Ma...

Using APP designer to communicate with the GIGE camera

You can combine VideoReader function with image binarization and extract "blobs" of a desired frame at a time. From the blobs Ma...

environ 3 ans il y a | 0

A répondu

How to swap between X, Y and Z in 3D plot

the function permute rearranges the order of the axes. S = permute(S,[1 2 3]); S1 = S = permute(S,[3 1 2]); % swapped matrix

How to swap between X, Y and Z in 3D plot

the function permute rearranges the order of the axes. S = permute(S,[1 2 3]); S1 = S = permute(S,[3 1 2]); % swapped matrix

environ 3 ans il y a | 0

A répondu

how do you count points on a graph

use getpts https://de.mathworks.com/help/images/ref/getpts.html

how do you count points on a graph

use getpts https://de.mathworks.com/help/images/ref/getpts.html

environ 3 ans il y a | 0

A répondu

Power Spectra estimation after FFT

try this example: sampling_freq = 5000 window = 8192, noverlap = 4096, nfft = 8192, [p,f] = pwelch(your_signal, 8192,409...

Power Spectra estimation after FFT

try this example: sampling_freq = 5000 window = 8192, noverlap = 4096, nfft = 8192, [p,f] = pwelch(your_signal, 8192,409...

environ 3 ans il y a | 0

| A accepté

Question

error in matlab arithmetic operations ?

I am puzzled by the result of this operation in matlab: I have a var that equals 3 I am trying to calculate (var-1)*60 instea...

environ 3 ans il y a | 1 réponse | 0

Question

add row to table in app designer - works ... but not completely

I am trying to add rows to a table by clicking a button in a GUI the code is as follows: the table is first initialized through...

environ 3 ans il y a | 1 réponse | 0

Question

how to add a single element to a table in app designer ?

this line adds one element to the first cell of the table (if the content is numeric) app.UITable.Data = [app.UITable.Data(:);a...

environ 3 ans il y a | 1 réponse | 0