Réponse apportée
How can I find a corresponding data value to a text value?
Create the masks only over the relevant columns. Then use a logical combination of the masks to select the entries from the fir...

plus de 4 ans il y a | 0

Réponse apportée
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Try this. locations=[center(1)-offsetx-(.5*boxsize), center(y)-offsety-(.5*boxsize),center(1)-offsetx+(.5*boxsize), center(y)...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Conflict between "TextLocation" and "annotation" when using "Legend"
Oof I didn't notice what was going on. When TextLocation.m creates the temporary legend object to scrape geometry from, it sets...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to determine if the intensity is uniform all over an image
"the intensity is uniform over an image" "the lighting is uniform over an object" One of these is a very simple thing to test....

plus de 4 ans il y a | 0

Réponse apportée
Hi, i want to correct the non uniform background noise form the image to remove the dependency of the background.I tried the code which is attach but it does not work.Please help me
That looks like one of IA's demos that's been tinkered with. Since whoever messed with it has left a bunch of obvious typos in ...

plus de 4 ans il y a | 1

Réponse apportée
Combining three text files into one text file
Since I have no idea what you tried, I'm just going to do this in MATLAB. Note that the first and second file already have trai...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to draw a line that separate white pixels in percentages on a image
Something like this should work: A = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/888330/binaryimage1...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Triangle wave starting at the origin
You can just offset t t = linspace(0,6.840,10000); x = 19.6.*sawtooth(t+pi/2,0.5); plot(t,x) grid on xticks([0 1 2 3 4 5 6 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
NORMALISED THE HISTOGRAM OF AN IMAGE.
Consider the example using histeq() A = imread('peppers.png'); Ahsi = rgb2hsi(A); % this is from MIMT on File Exchange Ah = A...

plus de 4 ans il y a | 0

Réponse apportée
How to manipulate a series of .csv files after reading it inside a for loop?
It seems to be picking up and writing all three lines to the file. The output formatting is messed up, but it's all there. I ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I overlay vector arrows to an image of a 2D matrix?
You're not specifying any scale information when calling imagesc(), so its scale is implicitly in pixels. Depending on what you...

plus de 4 ans il y a | 0

Réponse apportée
hello, i need to define one of the input arguments as a column/row vector. i tried the following but it says parse error. can someone please tell me who to do it properly.
This should fix the error about the function definition, but there are other issues function [dy1,dy2] = A5deriv(t,y) % two inp...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Find position of numbers in array
You can specify a second output argument to get the linear index of the elements represented by Z: W = [11, 56, 22, 45, 29] [Z...

plus de 4 ans il y a | 1

Réponse apportée
Calling latest version number of my own functions from one of my other functions?
I'm sure someone has a better way, but here's this. This just looks at all the .m files in a specified directory and replaces i...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
hello, how can i extract the odd and even numbers.
Consider the example A = linspace(-4,4,17) % test numbers including non-integers m = abs(rem(A,2)); Aodd = A(m == 1) % odd in...

plus de 4 ans il y a | 0

Réponse apportée
creating a string multiple string filter on multiple columns
Assuming you're dealing with a cell array of chars or string arrays: A = {'AA'; 'AB'; 'BA'; 'BB'; 'AC'; 'CA'; 'BC'; 'CB'; 'CC'}...

plus de 4 ans il y a | 1

Réponse apportée
How to convert a value to UINT8 by truncating the rest of the value
I'm assuming you're dealing with hex as character vectors: myhexnum = ['FFD1'; 'FFB5']; % convert 8 LSB to uint8 myuint8num...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
I'm trying to save a BMP image with a bit depth of 4.
As far as the documentation states, imwrite() does not support 4-bit output for BMP: https://www.mathworks.com/help/matlab/ref/...

plus de 4 ans il y a | 0

Réponse apportée
How do I compare a small [5,1] matrix to a bigger one [7,32] "variable"
Something like this: A = [0 1 0 0 1 1 0 1 0 1; 0 0 1 0 1 0 1 1 1 1; 0 0 0 0 0 0 0 0 1 1; 0 0 0 1 0 1 1 1 1 1; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
why is this not working? it seems like non of the loops is working properly. Only if I test them seperatly :/
This is a less frustrating way to approach the problem: N = 5; % find runs of this length inpict = [1 1 0 1 0 0 1 1 0 0 0 0 ...

plus de 4 ans il y a | 1

Réponse apportée
I want to split 4D single data (3600*40*40*40) where 3600 is time. I want to split the data for every 36 seconds to get 100 profile containing 36 sec in each profile.
Just put it in a cell array: A = rand(3600,4,4,4); % test array B = mat2cell(A,repmat(36,1,100),4,4,4)

plus de 4 ans il y a | 0

Réponse apportée
Why can't Matlab do the factorial of a non-integer number?
See the Gamma function https://en.wikipedia.org/wiki/Gamma_function Or in MATLAB, gamma(). Note that if you're trying to re...

plus de 4 ans il y a | 0

Réponse apportée
zooming a portion in the same figure (MATLAB)
Here's a start: % some simulant data xr = [0 pi]; x = linspace(xr(1),xr(2),100); y1 = -cos(x); y2 = -0.95*cos(0.99*x); %...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Help with forming a temperature image using black and white scale?
If you know what the exact relationship is between gray levels and temperatures (and you can presume that it's linear), why not ...

plus de 4 ans il y a | 0

Réponse apportée
problem saving array data into cell in every for loop
I don't see why you need to complicate things with a cell array when a numeric array seems like it would work fine. numops = 15...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
remove all lines from page (mainly horizontal)
Do you need to process this one image, or many varied images? If all you need is one image, there's little point in overcomplic...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Changing text file name changes the plot of data after using dir('*.txt') ??
Ah. That just happens to work because when the files are renamed, the one with the largest domain gets loaded first. If they...

plus de 4 ans il y a | 0

Réponse apportée
shuffle image of tiles
I know this is probably homework and there's no point in answering it, but it's a boring Friday. The typical approach is prob...

plus de 4 ans il y a | 0

Réponse apportée
How to plot imagesc plot over .jpg image?
Both objects exist in the same axes, so they share the same coordinate space. If you're going to specify x,y coordinates for th...

plus de 4 ans il y a | 0

| A accepté

A soumis


latestver() -- get the release number for the latest MATLAB
Simple tool to get the short release string for the latest version of MATLAB

plus de 4 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

Charger plus