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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

Beantwortet
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); %...

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

Gesendet


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

mehr als 4 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Mehr laden