A répondu

Extract pixel values inside a Binary Mask

since you already created a binary mask you can just index multiply " .* " the mask with the original image as outside is 0 and...

Extract pixel values inside a Binary Mask

since you already created a binary mask you can just index multiply " .* " the mask with the original image as outside is 0 and...

plus d'un an il y a | 0

A répondu

how to color and label only certain histogram bars?

Here is an example for @Adam Danz said with using bar y = randn(100); [N X]=hist(y(:),10); %plot all the data figure,clf,hb...

how to color and label only certain histogram bars?

Here is an example for @Adam Danz said with using bar y = randn(100); [N X]=hist(y(:),10); %plot all the data figure,clf,hb...

plus d'un an il y a | 1

A répondu

Looking for a matlab script that extracts data from a plot figure ( here 2D contours from Covariance matrix or Markov chains) and reproduce the original figure

your graph is a bit messy with text and lines that denote items. here is a quick example that may push you along. It'll need a...

Looking for a matlab script that extracts data from a plot figure ( here 2D contours from Covariance matrix or Markov chains) and reproduce the original figure

your graph is a bit messy with text and lines that denote items. here is a quick example that may push you along. It'll need a...

plus d'un an il y a | 0

| A accepté

A répondu

Scientific notation at y-axis with yticks/yticklabels

from the looks of it the desired state is also plotting in a log10. you can change the current axis by set(gca,'yscale','log'...

Scientific notation at y-axis with yticks/yticklabels

from the looks of it the desired state is also plotting in a log10. you can change the current axis by set(gca,'yscale','log'...

plus d'un an il y a | 0

| A accepté

A répondu

Find the indices of the imaginary element of the matrix

you can do a comparison to the real(A) like A=[1 2 3; 4+i 5 6-i; 7 8+i 9] [row col]=find(A~=real(A)) ...

Find the indices of the imaginary element of the matrix

you can do a comparison to the real(A) like A=[1 2 3; 4+i 5 6-i; 7 8+i 9] [row col]=find(A~=real(A)) ...

plus d'un an il y a | 0

A répondu

How to make the code efficient?

You can do things all at once cine you're not dependent on previous values. n=4 x=[0:n-1]; y=[0:n-1]; k = 0; %%Orig_code ...

How to make the code efficient?

You can do things all at once cine you're not dependent on previous values. n=4 x=[0:n-1]; y=[0:n-1]; k = 0; %%Orig_code ...

plus d'un an il y a | 1

A répondu

Double sigma with exception case

in your nested forloop you can put a check in for if j==i then continue. you do have a check up there with i~=j which should w...

Double sigma with exception case

in your nested forloop you can put a check in for if j==i then continue. you do have a check up there with i~=j which should w...

plus d'un an il y a | 0

| A accepté

A répondu

Remove shadow and unwanted background

to get your started you can see that the tissue and the shadow area have similar values in all the color channels. you can do a...

Remove shadow and unwanted background

to get your started you can see that the tissue and the shadow area have similar values in all the color channels. you can do a...

plus d'un an il y a | 0

A répondu

How do I plot the upper view of a matrix and represent the intensity color?

Here is an example of what i'm thinking you're doing. Not sure what you're doing with the weighted average but i think i did so...

How do I plot the upper view of a matrix and represent the intensity color?

Here is an example of what i'm thinking you're doing. Not sure what you're doing with the weighted average but i think i did so...

plus d'un an il y a | 1

| A accepté

A répondu

How to vertically and horizontally scan an image to store a coordinates (positions) of the elements having values other than 255.

do you need to "scan" in a for loop or are you just looking for the positions of the colors? if you don't need to scan in a for...

How to vertically and horizontally scan an image to store a coordinates (positions) of the elements having values other than 255.

do you need to "scan" in a for loop or are you just looking for the positions of the colors? if you don't need to scan in a for...

plus d'un an il y a | 0

A répondu

How to plot an equation qith specific data range?

For this you can use the function ylim() clc clear x=0:5:100; y=3*x+10; y1=4*x+5; plot(x,y) hold on plot(x,y1) ylim([25...

How to plot an equation qith specific data range?

For this you can use the function ylim() clc clear x=0:5:100; y=3*x+10; y1=4*x+5; plot(x,y) hold on plot(x,y1) ylim([25...

plus d'un an il y a | 0

A répondu

How to include function in legend

do you need to use latex as just using the default tex? as latex uses $ for markup of symbols i don't know if it'll take the sy...

How to include function in legend

do you need to use latex as just using the default tex? as latex uses $ for markup of symbols i don't know if it'll take the sy...

plus d'un an il y a | 1

A répondu

Having trouble with looping through fields in a struct

primarily its because of the data.t = zeros(length(list)); data.p = zeros(length(list)); where you've set the t and p to be ...

Having trouble with looping through fields in a struct

primarily its because of the data.t = zeros(length(list)); data.p = zeros(length(list)); where you've set the t and p to be ...

plus d'un an il y a | 0

| A accepté

A répondu

how to add a label to a contourf plot next to colourbar?

you can set a ylabel by passing the colorbar handles into ylabel [X,Y] = meshgrid(1:12,1:24); Z = sin(X) + cos(Y); figure(1),...

how to add a label to a contourf plot next to colourbar?

you can set a ylabel by passing the colorbar handles into ylabel [X,Y] = meshgrid(1:12,1:24); Z = sin(X) + cos(Y); figure(1),...

plus d'un an il y a | 1

| A accepté

A répondu

Plotting streamlines from a dataset (x,y,u,v)

So, meshgrid generates a grid of x and grid of y values so index wise you get the xy pair-combo. usually very useful when you're...

Plotting streamlines from a dataset (x,y,u,v)

So, meshgrid generates a grid of x and grid of y values so index wise you get the xy pair-combo. usually very useful when you're...

plus d'un an il y a | 1

| A accepté

A répondu

Change variables in for loop

That is because you're evaluating a string in that inpoly and not the variable x_e#... ideally you wouldn't want to do the evalu...

Change variables in for loop

That is because you're evaluating a string in that inpoly and not the variable x_e#... ideally you wouldn't want to do the evalu...

plus d'un an il y a | 0

| A accepté

A répondu

hello everyone. How to make the direction of points drawn on Cartesian coordinate system consistent with that drawn on binary image.

in a displayed image (0,0) is top left corner but cartesian is bottem left if in the ++ quadrant. so remedy this you can set th...

hello everyone. How to make the direction of points drawn on Cartesian coordinate system consistent with that drawn on binary image.

in a displayed image (0,0) is top left corner but cartesian is bottem left if in the ++ quadrant. so remedy this you can set th...

plus d'un an il y a | 0

| A accepté

A répondu

Help sketching equation into 3d graph

what you'll need to do is use the function meshgrid() which will then create a 2D matrix for both x and y such that you can get ...

Help sketching equation into 3d graph

what you'll need to do is use the function meshgrid() which will then create a 2D matrix for both x and y such that you can get ...

plus d'un an il y a | 1

A répondu

Bars disappear with log scale

While not ideal this should get you by since bar tries to plot the bar all the way to 0 which log scales don't show y=randi(100...

Bars disappear with log scale

While not ideal this should get you by since bar tries to plot the bar all the way to 0 which log scales don't show y=randi(100...

plus d'un an il y a | 0

A répondu

pre-define a struct/array of structs in attempt to get rid of out of memory error.

the pre-allocation can be done (though can't really find the right way ultimateR = []; temp = struct('name',[],'size',[],'resu...

pre-define a struct/array of structs in attempt to get rid of out of memory error.

the pre-allocation can be done (though can't really find the right way ultimateR = []; temp = struct('name',[],'size',[],'resu...

plus d'un an il y a | 0

A résolu

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

plus de 2 ans il y a

A répondu

Using get and set command to add a title, xlabel, and ylabel?

You can take a look by first extracting out the current axis or assign it to a variable: figure(1),imagesc(randi(10,10,10)) ha...

Using get and set command to add a title, xlabel, and ylabel?

You can take a look by first extracting out the current axis or assign it to a variable: figure(1),imagesc(randi(10,10,10)) ha...

plus de 2 ans il y a | 0

| A accepté

A répondu

HDFread and hdfinfo on modis data

Answer to this after brute forcing looking at all named values. attributes that should have been pulled from just reading in si...

HDFread and hdfinfo on modis data

Answer to this after brute forcing looking at all named values. attributes that should have been pulled from just reading in si...

plus de 2 ans il y a | 0

| A accepté

Question

HDFread and hdfinfo on modis data

I appear to be missing some fundamental understanding of hdfread and hdfinfo for MODIS hdf data files (note not hdf5 files). ...

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

A répondu

Two-dimensional colormap

I'm puzzeled by your first portion and the need for a for loop. unless you have a hold somewhere the images shouldn't be stackin...

Two-dimensional colormap

I'm puzzeled by your first portion and the need for a for loop. unless you have a hold somewhere the images shouldn't be stackin...

presque 3 ans il y a | 1

| A accepté

A répondu

how to know if a char vector contains unwanted characters?

check out the function ismember here is snippet of test code x=["0","1","2","3","4","5","6","7","8","9","."]; y = ["3","3","5"...

how to know if a char vector contains unwanted characters?

check out the function ismember here is snippet of test code x=["0","1","2","3","4","5","6","7","8","9","."]; y = ["3","3","5"...

presque 3 ans il y a | 0

A répondu

How can I splitt up a big matrix into smaller matrises, splitting it up by values on the x-axis

so the main question is whether the ranges for the smaller matrixes are known or need to be detectable. then you can use a for ...

How can I splitt up a big matrix into smaller matrises, splitting it up by values on the x-axis

so the main question is whether the ranges for the smaller matrixes are known or need to be detectable. then you can use a for ...

presque 3 ans il y a | 0

| A accepté

A répondu

How can I convert a YCbCr image to 4:2:0

while you're probably not going to implement this in simulink but take a look at https://www.mathworks.com/help/vision/ref/chrom...

How can I convert a YCbCr image to 4:2:0

while you're probably not going to implement this in simulink but take a look at https://www.mathworks.com/help/vision/ref/chrom...

presque 3 ans il y a | 0

A répondu

How to plot a region in a Matlab plot?

here is quick example of what you can do by putting the regions as an image under the plots: %gen xy spans temps=0:.1:100; ...

How to plot a region in a Matlab plot?

here is quick example of what you can do by putting the regions as an image under the plots: %gen xy spans temps=0:.1:100; ...

presque 3 ans il y a | 0

| A accepté

A répondu

How to set marker groups in one plot?

Here is a snippet of code that should help you out. %Dummy data GroupNo =[1 1 1 2 2 2 3 3 4] A = randi(100,numel(GroupNo),2);...

How to set marker groups in one plot?

Here is a snippet of code that should help you out. %Dummy data GroupNo =[1 1 1 2 2 2 3 3 4] A = randi(100,numel(GroupNo),2);...

presque 3 ans il y a | 0

| A accepté