Dear All
I am trying to superimpose 2 plots using the hold on option.
e.g.
.
.
.
[X,Y]=meshgrid(x,y);
PIC = surf(X,Y,a);
view(0,90);
.
.
hold on
plot(20,30,'ro');
My problem is how can I increase the size of these red circles, and how can I
make large bright red spots rather than small red circles?
thanks
Ravi.
Matlab superimposing function
Started by ●January 18, 2006
Reply by ●January 18, 20062006-01-18
You can set line properties of line with the plot command:
plot(x, y, property, value, property, value .). Check doc
plot for more details.
The properties you want to use for the makers are:
MarkerSize, MarkerEdgeColor, MarkerFaceColor.
Hope it helps.
Feng _____
From: matlab@matl... [mailto:matlab@matl...]
On Behalf Of Ravi Sharma
Sent: Wednesday, January 18, 2006 6:37 AM
To: matlab@matl...
Subject: [matlab] Matlab superimposing function
Dear All
I am trying to superimpose 2 plots using the hold on
option.
e.g.
.
.
.
[X,Y]=meshgrid(x,y);
PIC = surf(X,Y,a);
view(0,90);
.
.
hold on
plot(20,30,'ro');
My problem is how can I increase the size of these red
circles, and how can I make large bright red spots rather
than small red circles?
thanks
Ravi.
plot(x, y, property, value, property, value .). Check doc
plot for more details.
The properties you want to use for the makers are:
MarkerSize, MarkerEdgeColor, MarkerFaceColor.
Hope it helps.
Feng _____
From: matlab@matl... [mailto:matlab@matl...]
On Behalf Of Ravi Sharma
Sent: Wednesday, January 18, 2006 6:37 AM
To: matlab@matl...
Subject: [matlab] Matlab superimposing function
Dear All
I am trying to superimpose 2 plots using the hold on
option.
e.g.
.
.
.
[X,Y]=meshgrid(x,y);
PIC = surf(X,Y,a);
view(0,90);
.
.
hold on
plot(20,30,'ro');
My problem is how can I increase the size of these red
circles, and how can I make large bright red spots rather
than small red circles?
thanks
Ravi.
Reply by ●January 19, 20062006-01-19
Hi, There,
I have some data in *.txt format.
They are saved as follows.
***************************************
The data is collected on Jan 1, 2006.
Sampling frequency is 2560Hz.
No load.
Column1 Column2 Column3
0 1.02 1.10
0.001 0.81 -0.9
... .... ...
******************************
I want to load the data
0 1.02 1.10
0.001 0.81 -0.9
... .... ...
Anyone can give some suggestions?
Thanks a lot.
Frank
I have some data in *.txt format.
They are saved as follows.
***************************************
The data is collected on Jan 1, 2006.
Sampling frequency is 2560Hz.
No load.
Column1 Column2 Column3
0 1.02 1.10
0.001 0.81 -0.9
... .... ...
******************************
I want to load the data
0 1.02 1.10
0.001 0.81 -0.9
... .... ...
Anyone can give some suggestions?
Thanks a lot.
Frank
Reply by ●January 20, 20062006-01-20
There are multiple methods of doing this.
The easiest is
1.) Open the file
fid = fopen('file_name.txt','r');
2.) Scan in the file data
[raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
where NumCol is the number of colums of data
inf is for the number of rows (dosn't need to be specified)
Count gives you the total number of data points, raw_data is your data
array.
3.) close out your file
fclose(fid);
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
The easiest is
1.) Open the file
fid = fopen('file_name.txt','r');
2.) Scan in the file data
[raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
where NumCol is the number of colums of data
inf is for the number of rows (dosn't need to be specified)
Count gives you the total number of data points, raw_data is your data
array.
3.) close out your file
fclose(fid);
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
Reply by ●January 20, 20062006-01-20
There are multiple methods of doing this.
The easiest is
1.) Open the file
fid = fopen('file_name.txt','r');
2.) Scan in the file data
[raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
where NumCol is the number of colums of data
inf is for the number of rows (dosn't need to be specified)
Count gives you the total number of data points, raw_data is your data
array.
3.) close out your file
fclose(fid);
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
The easiest is
1.) Open the file
fid = fopen('file_name.txt','r');
2.) Scan in the file data
[raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
where NumCol is the number of colums of data
inf is for the number of rows (dosn't need to be specified)
Count gives you the total number of data points, raw_data is your data
array.
3.) close out your file
fclose(fid);
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
Reply by ●January 20, 20062006-01-20
Hello,
I have been suscripted to this lits recently. I would like some help
to implement a algorithm from paper
"A Phase Reconstruction algorithm from Bispectrum" SALEH ALSHEBEILI
& ENIS CETIN, IEEE Transaction on geoscience and sensing, vol 28, nro2,
march 1990.
Link of file pdf:
http://ieeexplore.ieee.org/iel1/36/1766/00046695.pdf?arnumberF695
If anyone can help me or assit to implement this algorithm ,
please replay me. I have some problems to map from mathemtics language to
matlab language.
Regards,
===== Carlos Alberto Estombelo Montesco ======
=====================================
Reply by ●January 21, 20062006-01-21
Hi
Use dlmread('file.txt',' ',5,0) ... this should work.
Here 5 denotes the number of row where the data
starts.
For the header you can use textread('file.txt','%s')
and parse the required header text.
or just for header you can use --
fid=fopen('file.txt','r');
for i=1:NoOfTheRowsOfTheHeader
header{i}=fgetl;
end
%% now you will have 4 header line in the cell header
Hope this will help
thota
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
Use dlmread('file.txt',' ',5,0) ... this should work.
Here 5 denotes the number of row where the data
starts.
For the header you can use textread('file.txt','%s')
and parse the required header text.
or just for header you can use --
fid=fopen('file.txt','r');
for i=1:NoOfTheRowsOfTheHeader
header{i}=fgetl;
end
%% now you will have 4 header line in the cell header
Hope this will help
thota
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
Reply by ●January 21, 20062006-01-21
Hello,
You just have to go File > Import Data and then
select your file. The column separator can be space.
Select Data and not Text
Blesy
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
You just have to go File > Import Data and then
select your file. The column separator can be space.
Select Data and not Text
Blesy
--- "Hi, There" <ny_abc2000@ny_a...> wrote:
> Hi, There,
>
> I have some data in *.txt format.
>
> They are saved as follows.
>
> ***************************************
> The data is collected on Jan 1, 2006.
> Sampling frequency is 2560Hz.
> No load.
>
> Column1 Column2 Column3
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> ******************************
>
> I want to load the data
>
> 0 1.02 1.10
> 0.001 0.81 -0.9
> ... .... ...
>
> Anyone can give some suggestions?
>
> Thanks a lot.
>
> Frank >
>
__________________________________________________
Reply by ●January 23, 20062006-01-23
Ok but how about getting 45.,90.,135....data if it is in the following
structure?
1 Heading
2 Heading
3 Heading
...
45 Data
..
90 Data
..
135 Data
...
Thanks for help.
Mesut On 1/20/06, Michael Burke <burke128@burk...> wrote:
> >
> > There are multiple methods of doing this.
> >
> > The easiest is
> > 1.) Open the file
> > fid = fopen('file_name.txt','r');
> >
> > 2.) Scan in the file data
> > [raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
> > where NumCol is the number of colums of data
> > inf is for the number of rows (dosn't need to be specified)
> >
> > Count gives you the total number of data points, raw_data is your data
> > array.
> >
> > 3.) close out your file
> > fclose(fid);
> >
> > --- "Hi, There" <ny_abc2000@ny_a...> wrote:
> >
> > > Hi, There,
> > >
> > > I have some data in *.txt format.
> > >
> > > They are saved as follows.
> > >
> > > ***************************************
> > > The data is collected on Jan 1, 2006.
> > > Sampling frequency is 2560Hz.
> > > No load.
> > >
> > > Column1 Column2 Column3
> > > 0 1.02 1.10
> > > 0.001 0.81 -0.9
> > > ... .... ...
> > >
> > > ******************************
> > >
> > > I want to load the data
> > >
> > > 0 1.02 1.10
> > > 0.001 0.81 -0.9
> > > ... .... ...
> > >
> > > Anyone can give some suggestions?
> > >
> > > Thanks a lot.
> > >
> > > Frank
> > >
structure?
1 Heading
2 Heading
3 Heading
...
45 Data
..
90 Data
..
135 Data
...
Thanks for help.
Mesut On 1/20/06, Michael Burke <burke128@burk...> wrote:
> >
> > There are multiple methods of doing this.
> >
> > The easiest is
> > 1.) Open the file
> > fid = fopen('file_name.txt','r');
> >
> > 2.) Scan in the file data
> > [raw_data,count] = fscanf(fid,'%f',[NumCol inf]);
> > where NumCol is the number of colums of data
> > inf is for the number of rows (dosn't need to be specified)
> >
> > Count gives you the total number of data points, raw_data is your data
> > array.
> >
> > 3.) close out your file
> > fclose(fid);
> >
> > --- "Hi, There" <ny_abc2000@ny_a...> wrote:
> >
> > > Hi, There,
> > >
> > > I have some data in *.txt format.
> > >
> > > They are saved as follows.
> > >
> > > ***************************************
> > > The data is collected on Jan 1, 2006.
> > > Sampling frequency is 2560Hz.
> > > No load.
> > >
> > > Column1 Column2 Column3
> > > 0 1.02 1.10
> > > 0.001 0.81 -0.9
> > > ... .... ...
> > >
> > > ******************************
> > >
> > > I want to load the data
> > >
> > > 0 1.02 1.10
> > > 0.001 0.81 -0.9
> > > ... .... ...
> > >
> > > Anyone can give some suggestions?
> > >
> > > Thanks a lot.
> > >
> > > Frank
> > >
Reply by ●January 24, 20062006-01-24
Try using simply textread function. This function put
all the data in an array following a delimiter. In
your case, no demiliter. Then when you use
textread('file',4,0) you will get
45
data
90
data
...
use for loops to extract the required data
thota
--- Mesut Varlioglu <varlioglu@varl...> wrote:
> Ok but how about getting 45.,90.,135....data if it
> is in the following
> structure?
>
> 1 Heading
> 2 Heading
> 3 Heading
> ...
> 45 Data
> ..
> 90 Data
> ..
> 135 Data
> ...
>
> Thanks for help.
>
> Mesut > On 1/20/06, Michael Burke <burke128@burk...>
> wrote:
> > >
> > > There are multiple methods of doing this.
> > >
> > > The easiest is
> > > 1.) Open the file
> > > fid == fopen('file_name.txt','r');
> > >
> > > 2.) Scan in the file data
> > > [raw_data,count] == fscanf(fid,'%f',[NumCol
> inf]);
> > > where NumCol is the number of colums of data
> > > inf is for the number of rows (dosn't need to
> be specified)
> > >
> > > Count gives you the total number of data points,
> raw_data is your data
> > > array.
> > >
> > > 3.) close out your file
> > > fclose(fid);
> > >
> > > --- "Hi, There" <ny_abc2000@ny_a...> wrote:
> > >
> > > > Hi, There,
> > > >
> > > > I have some data in *.txt format.
> > > >
> > > > They are saved as follows.
> > > >
> > > > ***************************************
> > > > The data is collected on Jan 1, 2006.
> > > > Sampling frequency is 2560Hz.
> > > > No load.
> > > >
> > > > Column1 Column2 Column3
> > > > 0 1.02 1.10
> > > > 0.001 0.81 -0.9
> > > > ... .... ...
> > > >
> > > > ******************************
> > > >
> > > > I want to load the data
> > > >
> > > > 0 1.02 1.10
> > > > 0.001 0.81 -0.9
> > > > ... .... ...
> > > >
> > > > Anyone can give some suggestions?
> > > >
> > > > Thanks a lot.
> > > >
> > > > Frank
> > > >
all the data in an array following a delimiter. In
your case, no demiliter. Then when you use
textread('file',4,0) you will get
45
data
90
data
...
use for loops to extract the required data
thota
--- Mesut Varlioglu <varlioglu@varl...> wrote:
> Ok but how about getting 45.,90.,135....data if it
> is in the following
> structure?
>
> 1 Heading
> 2 Heading
> 3 Heading
> ...
> 45 Data
> ..
> 90 Data
> ..
> 135 Data
> ...
>
> Thanks for help.
>
> Mesut > On 1/20/06, Michael Burke <burke128@burk...>
> wrote:
> > >
> > > There are multiple methods of doing this.
> > >
> > > The easiest is
> > > 1.) Open the file
> > > fid == fopen('file_name.txt','r');
> > >
> > > 2.) Scan in the file data
> > > [raw_data,count] == fscanf(fid,'%f',[NumCol
> inf]);
> > > where NumCol is the number of colums of data
> > > inf is for the number of rows (dosn't need to
> be specified)
> > >
> > > Count gives you the total number of data points,
> raw_data is your data
> > > array.
> > >
> > > 3.) close out your file
> > > fclose(fid);
> > >
> > > --- "Hi, There" <ny_abc2000@ny_a...> wrote:
> > >
> > > > Hi, There,
> > > >
> > > > I have some data in *.txt format.
> > > >
> > > > They are saved as follows.
> > > >
> > > > ***************************************
> > > > The data is collected on Jan 1, 2006.
> > > > Sampling frequency is 2560Hz.
> > > > No load.
> > > >
> > > > Column1 Column2 Column3
> > > > 0 1.02 1.10
> > > > 0.001 0.81 -0.9
> > > > ... .... ...
> > > >
> > > > ******************************
> > > >
> > > > I want to load the data
> > > >
> > > > 0 1.02 1.10
> > > > 0.001 0.81 -0.9
> > > > ... .... ...
> > > >
> > > > Anyone can give some suggestions?
> > > >
> > > > Thanks a lot.
> > > >
> > > > Frank
> > > >






