Answered

problem in for loop for plotting

do you mean you're missing the first spectrum because you put the figure after the first instance of subplot? you should move f...

problem in for loop for plotting

do you mean you're missing the first spectrum because you put the figure after the first instance of subplot? you should move f...

2 years ago | 0

| accepted

Answered

Loop to generate a folder and to join files in .txt format

without generating some dummy files here is how i see your loop and joining of the two files. you'll have to modify it dependin...

Loop to generate a folder and to join files in .txt format

without generating some dummy files here is how i see your loop and joining of the two files. you'll have to modify it dependin...

2 years ago | 0

Answered

Finding a point best representing the centre of density

I don't quite think you need to go that far as Image Analyst suggests. if i get it you have a consumption by time by user matri...

Finding a point best representing the centre of density

I don't quite think you need to go that far as Image Analyst suggests. if i get it you have a consumption by time by user matri...

2 years ago | 0

Answered

Putting information on a imshow graph

there is a function called title() x=rand(100,100);imshow(x),title('text')

Putting information on a imshow graph

there is a function called title() x=rand(100,100);imshow(x),title('text')

2 years ago | 0

Answered

How to Add Linear Trendline that Considers Errorbars

so if you want to take in the span of the error bars why not take into account the error bar points: clf; x = [1 2 3]'; ...

How to Add Linear Trendline that Considers Errorbars

so if you want to take in the span of the error bars why not take into account the error bar points: clf; x = [1 2 3]'; ...

2 years ago | 1

Answered

How to prevent overlapping of point values on a matlab plot?

why not put it in a legend if there are so few points points=[1 1.01;1 1]; figure,plot(points(1,1),points(1,2),'x',p...

How to prevent overlapping of point values on a matlab plot?

why not put it in a legend if there are so few points points=[1 1.01;1 1]; figure,plot(points(1,1),points(1,2),'x',p...

2 years ago | 1

| accepted

Answered

How I remove edge lines and add reference lines into contour plot generated with plot(array,'style','contour')?

you would do something like clf load variables plot_data = fit ([X, Y], Z, 'cubicinterp'); contourplot = plot(plot...

How I remove edge lines and add reference lines into contour plot generated with plot(array,'style','contour')?

you would do something like clf load variables plot_data = fit ([X, Y], Z, 'cubicinterp'); contourplot = plot(plot...

2 years ago | 0

| accepted

Answered

Plot over an image

I would check your points. i see that b and d are swapped, but is there sufficient distances for you to see it with the image b...

Plot over an image

I would check your points. i see that b and d are swapped, but is there sufficient distances for you to see it with the image b...

2 years ago | 0

| accepted

Answered

How to plot two matrices of different sizes in the same figure?

I would go with something like this %% gen 8x8 post grid figure(1),clf, surf([1:8],[1:8],zeros(8,8)),view([0 90]), ho...

How to plot two matrices of different sizes in the same figure?

I would go with something like this %% gen 8x8 post grid figure(1),clf, surf([1:8],[1:8],zeros(8,8)),view([0 90]), ho...

2 years ago | 0

Answered

How to sum up specific pixel intensities in image?

you can use logical ">" to find the values greater than 120 example = magic(10); ind=find(example>50); sumintent = sum(e...

How to sum up specific pixel intensities in image?

you can use logical ">" to find the values greater than 120 example = magic(10); ind=find(example>50); sumintent = sum(e...

3 years ago | 0

Answered

How to count data cursors and assign a fixed number to each?

you can change things around and use something like this: hfig = figure;plot(1:10,[1:10].^2) hcursor = datacursormode(hf...

How to count data cursors and assign a fixed number to each?

you can change things around and use something like this: hfig = figure;plot(1:10,[1:10].^2) hcursor = datacursormode(hf...

3 years ago | 0

Answered

How to change displayed plot in a GUI with pop-up menu.

Yes.... look at the guide quick start templates. type in guide into the workspace and it'll open the quick start window. Selec...

How to change displayed plot in a GUI with pop-up menu.

Yes.... look at the guide quick start templates. type in guide into the workspace and it'll open the quick start window. Selec...

3 years ago | 0

| accepted

Answered

Hi,,I am trying to generate a shift register in matlab .IS it possible?I am explaining the problem below.Thanks in Advance

look up the function circshift()

Hi,,I am trying to generate a shift register in matlab .IS it possible?I am explaining the problem below.Thanks in Advance

look up the function circshift()

3 years ago | 0

Answered

Create waitbar without opening new window

so... here is a quick example to create a waitbar that you can do some extra stuff by utilizing java. i'll let you figure out h...

Create waitbar without opening new window

so... here is a quick example to create a waitbar that you can do some extra stuff by utilizing java. i'll let you figure out h...

3 years ago | 0

Answered

How to close editor from the command line?

you can call com.mathworks.mlservices.MLEditorServices.closeAll you can read up all about this on the <http://undocumentedmat...

How to close editor from the command line?

you can call com.mathworks.mlservices.MLEditorServices.closeAll you can read up all about this on the <http://undocumentedmat...

3 years ago | 2

| accepted

Answered

Multiple Editors in MATLAB having more than one tab.

I'm trying to work on something for the file exchange to make it simpler but having difficulty finding the time(not as simple as...

Multiple Editors in MATLAB having more than one tab.

I'm trying to work on something for the file exchange to make it simpler but having difficulty finding the time(not as simple as...

3 years ago | 0

Answered

How to enlarge pie chart to appear more clearly?

Here is a quick intro example of what you can do by modifying the handles of the plots. not sure what you're going for but hope...

How to enlarge pie chart to appear more clearly?

Here is a quick intro example of what you can do by modifying the handles of the plots. not sure what you're going for but hope...

3 years ago | 0

Answered

Deleting a Column from an array?

you can use the indexing of arrays to delete a column. A = 1:10; %1x10; counting from 1 to 10; to delete column 9 (ie...

Deleting a Column from an array?

you can use the indexing of arrays to delete a column. A = 1:10; %1x10; counting from 1 to 10; to delete column 9 (ie...

3 years ago | 1

Answered

How to take comlex number from edit text into listbox in Matlab?

Take a look at the function regexp() <http://www.mathworks.com/help/matlab/ref/regexp.html> and with the input like the examp...

How to take comlex number from edit text into listbox in Matlab?

Take a look at the function regexp() <http://www.mathworks.com/help/matlab/ref/regexp.html> and with the input like the examp...

3 years ago | 0

Answered

Store Variables from for loop to cell array. it only stores the last run

it might be obvious but you might want to nest your for loops. cnter = 2 %create header for j = 1:size(marker,1) ...

Store Variables from for loop to cell array. it only stores the last run

it might be obvious but you might want to nest your for loops. cnter = 2 %create header for j = 1:size(marker,1) ...

3 years ago | 0

Answered

how to find subsets of different matrices

use the function ismember(). with that you can see which matrices have the most in common.

how to find subsets of different matrices

use the function ismember(). with that you can see which matrices have the most in common.

3 years ago | 1

Answered

Does Matlab have functionality to make a video of a moving graph and merge it with another video?

sure. here is a very quick example. my stitch is ugly but gets you where you want to go: %% lets start by gen dummy vi...

Does Matlab have functionality to make a video of a moving graph and merge it with another video?

sure. here is a very quick example. my stitch is ugly but gets you where you want to go: %% lets start by gen dummy vi...

3 years ago | 2

| accepted

Answered

Handle of a figure

You should rephrase your question to what are you trying to accomplish with the handle of the current figure. getframe(gcf) doe...

Handle of a figure

You should rephrase your question to what are you trying to accomplish with the handle of the current figure. getframe(gcf) doe...

3 years ago | 0

Answered

How to use ginput with live video?

I don't really think ginput() would be the best function to use. why not something like %%live video answers example ...

How to use ginput with live video?

I don't really think ginput() would be the best function to use. why not something like %%live video answers example ...

3 years ago | 0

| accepted

Answered

How can I change cell mode color settings?

it is back in the color options that you used to change the background to black. you should be able to expand the colors catego...

How can I change cell mode color settings?

it is back in the color options that you used to change the background to black. you should be able to expand the colors catego...

4 years ago | 0

Answered

How to find all possible combinations of an array?

the function perms will generate all the combinations perms(2:7) will give you 7 6 5 4 3 2 ...

How to find all possible combinations of an array?

the function perms will generate all the combinations perms(2:7) will give you 7 6 5 4 3 2 ...

4 years ago | 0

Answered

plotyyy: third plot as bar

quickest and easiest way would be to edit the plotyy line of the graph to be [ax,hlines(1),hlines(2)] = plotyy(x1,y1,x2,y2,...

plotyyy: third plot as bar

quickest and easiest way would be to edit the plotyy line of the graph to be [ax,hlines(1),hlines(2)] = plotyy(x1,y1,x2,y2,...

4 years ago | 0

Answered

get plot handles from existing legend from 2014b on

you can extract that data in a way like this: figure; originaldata = rand(10); plot(originaldata); h = legend('bla...

get plot handles from existing legend from 2014b on

you can extract that data in a way like this: figure; originaldata = rand(10); plot(originaldata); h = legend('bla...

4 years ago | 0

Answered

Generate all possible combinations of a few variables of a maximum length using certain mathematical operators/functions?

This is certainly possible and to perform this easily i'd tackle this in two parts. # create function to perform single var...

Generate all possible combinations of a few variables of a maximum length using certain mathematical operators/functions?

This is certainly possible and to perform this easily i'd tackle this in two parts. # create function to perform single var...

4 years ago | 0

Answered

I had time 21:09 and i want to generate previous 10 time events like 21:08 to 20:59. so how to implement?

the units of datenum are in days so you need to subtract by the fraction of day. datestr(datenum('21:09')-1/24/60,15) %wil...

I had time 21:09 and i want to generate previous 10 time events like 21:08 to 20:59. so how to implement?

the units of datenum are in days so you need to subtract by the fraction of day. datestr(datenum('21:09')-1/24/60,15) %wil...

4 years ago | 0

| accepted