Question


Image after saving, changing the orientation!
Please have a look at the attached figure. Figure1: Is my real data, the intensity map plot with the function 'colormap'. I wan...

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

0

réponse

Question


Applying a function row by row in a matrix
I want to apply a function to each row in a matrix. For example, my function is function(R,L); where R is the input (row) and L ...

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

1

réponse

Question


semilogy and log10 : To make display in the same way
How to make the semilogy and log10 plot appear in same way? A=[1:15]; B=[3:17]; figure(1) semilogy(A,B) figur...

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

1

réponse

Réponse apportée
Can I plot a point with an arrow towards it?
check plot::Arrow3d Is this the same thing what you mean? I found a few functions in Matlab fileexchange. May be tha...

plus de 10 ans il y a | 0

Réponse apportée
Select rows given a condition
Try this: B=A(any(A==1997,2),:)

plus de 10 ans il y a | 1

Question


How to exclude some files while load a set of files using a loop?
I am loading a set of files using loop as follows: for k=1:10 A{k} = load(['E:/MatlabData/File',num2str(k),'.asc']); ...

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

2

réponses

Question


How to fix one point with no error while curve fitting
I have a data to fit linear plot. But I want to fit the first point with no error. I mean, the fitted curve should fix on the fi...

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

2

réponses

Réponse apportée
Reading this ASCII data in MATLAB
Files are not attached. Did you try to load using load ('filename') function? Also, plot(x,y) function to plot the map!

plus de 10 ans il y a | 0

Question


The loop in my code is taking longer time. Any way to make it faster? or any other faster way?
I have to read almost 22 files (.asc format). I made a loop to put all those in a cell array and make the histogram. But unfortu...

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

0

réponse

Réponse apportée
Setting axes in bar function
use xlim, ylim options... you can simply give xlim=([xmin xmax]); ylim=([ymin ymax]); or set(gca,'XLim',[xmin xmax...

plus de 10 ans il y a | 1

Question


How can I loop this code for several data files and finally accumulate all the plots together?
I have a code: B=load('Data1.dat'); Dat=[B(:,1) B(:,2)]; nbins=[1000 1000]; n=hist3(Dat,nbins); n1 = n; n1(size(...

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

1

réponse

Question


How to get the projection of a 2D colorplot on x axis?
I have a 2D color plot as following: <</matlabcentral/answers/uploaded_files/13526/matlabAnswers.jpg>> how can I choose ...

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

1

réponse

A soumis


saveseq.m
Save the files by numbering the file name sequentially

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

Question


I want to make a function with save option.
I have the following code in my script (this code looks for the file in directory and save with filename#, numbering sequentiall...

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

1

réponse

Question


To save the data files numberig
Is there any way to save the data as data file by numbering it automatically. I mean, this command should look if another file w...

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

1

réponse

Question


To take parameter of a fit from one section to use in another fit in the next section.
I have a program which make a linear fit on a data. I want to use the slope of this linear fit on another data where I fit expon...

plus de 10 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
check if two variables are not equal to zero.
ind=find(V==0) size(ind) OR sum(V(:)==0) %this will give the number of zeros

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Set min and max value for the color bar on a script
Try caxis([min max]);

plus de 10 ans il y a | 0

| A accepté

Question


Counting the number of events and total number of blocks from a file.
I have results of my experiment on a .dat file (.text version is attached here with). It is obtained after doing experiments for...

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

1

réponse

Question


Title the figure outputs of a function with different comments.
I have a program which uses a function named 'PlotColorMap'(I created this function). This function plot color maps for the data...

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

1

réponse

Question


I want to repeat a section several times taking different values
A section of my program is as follows: Dat=[Data(:,1) Data(:,2)]; nbins=[100 100]; figure hist3(Dat,nbins,'FaceAlpha...

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

2

réponses

Question


How to delete/subtract/make zero all the values above a specific value?
My data has three columns. I want to do three things. 1) In the first analysis, I want to delete all the values above 255. ...

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

2

réponses

Question


How to sort a set of data according to the ascending order with time?
I have a data with three columns (X, Y and Time). This data is recorded for many different cycle of experiments. When the cycle ...

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

1

réponse

Question


How to sort all the columns of a file into a single column?
I have a data file having several columns of values. I want to sort all the columns of the file into one column. For example let...

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

2

réponses

Question


How to zoom a region of a plot?
I have a program which plots 6 different data as separate plots. I want to get those plots zoomed in a range. For example, my or...

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

1

réponse

Question


How to fit a square and find the center point?
I have a data plot look like in the picture: <</matlabcentral/answers/uploaded_files/6810/Image%20for%20MatlabCentral.jpg>> ...

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

1

réponse

Question


Compare and replace elements in a matrix
I have a matrix say A=[1 2 3 4 5 6 7 8 9 10] B=[2 5 10]. I want to compare A and B so that 2,5 and 10 (in B) should be replaced...

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

2

réponses

Question


Eliminate events from the plot
I have a data with three columns X, Y and T. X and Y represents positions of and event and T the corresponding time. What I did ...

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

1

réponse

Question


How to run a code for several files also how to stop the code for a specific number of files and give output?
I have following code: A=load('CurRunA.dat'); X=A(:,1); Y=A(:,3); figure( plot(X,Y) I want to run this code for se...

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

1

réponse

Question


To fit the angular distribution with a given equation.
I have a data (A) with two columns Rho and Theta (in polar coordinates). If I plot the histogram of Theta, I get Y(Theta). ...

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

1

réponse

Charger plus