I want to make topomap using EEG data.
I used EEGLAB toolbox.
It can make only interpolation form (figure 1).
I want to like this topomap (figure 2).
I already changed many option of EEGLAB's topoplot function.
But, I couldn't find it.
Is there any method of make that kinds of topomap using matlab?
Related
I want to plot gmsk modulator "signal wave form" in simulink. but because gmsk modulator output is complex array, scope can't show it directly, and when I use complex to real / image converter, it's wave form is clearly just flat lines "fig1" rather than "fig2".so i should convert them to sin and cos with their respectively phase and amplitude but don't know how to do it yet. i want to plot something like this "fig2"
thank you.simulink project
When using blocks from the DSP Blockset or the Communications Blockset you'd usually also use the specialized viewers available with those blocksets to view signals. In this case you most likely want the Spectrum Analyzer.
To get familiar with various ways of viewing this type of signal have a look at some of the examples. For instance,
>> commadjcochanint
I am using Matlab 2015a.
I have got electricity consumption data to cluster it. Initially i am trying to cluster it against hours and dates. I have created three different variables, one for time, one for dates and third for data. I am unable to understand how should i combine these in a matrix form so that the loads are distributed according to time? Then i have tried to look how can i plot a line graph for k-means but i can only find scatter command graphs but no line plots.
Further how can i plot it as a 3-d plot?
Further at a later stage i want to include temperature variable aswel. But when the 4th variable is involved, what will the plot be? will it still be 3-d?
Any suggestions, links?
In Matlab you can create N-dimensional matrices, so you can arrange your 3D data in a N*M*3 matrix (you might want to look for the cat() function to help you out).
There are several functions that allow you to plot in 3D, one of these is scatter3() which is perfect for K-Means clustering. I don't really understand which lines you do want to plot: K-Means is about clusters and centroids (i.e. points).
If a 4th variable is involved, you can as well create a 4D matrix. Although I reckon plotting a 4D graph isn't going to be easy. A first approach might be using several colours for your scatter points with different colours for different temperatures (or temperatures range). In this case the 5th input argument for scatter3() will be helpful.
Help for scatter3() here.
Help for cat() here.
Is is possible to plot a histogram in MATLAB where the summary statistics are displayed in the histogram?
Here is an example of what I want generated in Mathematica
I've looked on the web but can't find an example like this in MATLAB anywhere?
You can use the text() function to add anything you want to a plot in MATLAB.
Alternatively, you can use textbp(), as pointed out by Daniel. textbp() will automatically choose the best position to place text.
As a part of my project I need to generate high dimensional non linear dataset / spherical dataset...I am using Matlab to generate it...I have tried using randn,surf and plot3 functions ..I referred
http://in.mathworks.com/help/matlab/math/numbers-placed-randomly-within-volume-of-sphere.html
I got the output but I dont have any clear idea....Can anyone help with this or suggest how to generate the dataset mentioned .. like any function?.Also I would like to view the dataset like by using plot or something.....Thanx in advance...
How to generate the curve of transfer function:
G0(s)=exp(-s)*[(2s+4)/(s^3+5s^2+6s+4)]
using MATLAB and Simulink?
What kind of curve do you mean? Bode plot? Nyquist plot? Step response?
Use the tf function to create your transfer function with the InputDelay parameter to represent the exp(-s), see Models with Time Delays in the documentation for more details.
Once you have your transfer function, you can use functions like bode, nyquist, step, impulse, etc... to generate your "curve" of choice.
All of this requires the Control System Toolbox.