how do i make a waveform plot from this data ?

6 visualizzazioni (ultimi 30 giorni)
Will Hewitt il 14 Gen 2021
Risposto: Priyanka Rai il 1 Feb 2021
Struggling to code this plot, all i have to do is make a plot however i was never taught how to use matlab without a script
2 CommentiMostra NessunoNascondi Nessuno
Daniel Pollard il 14 Gen 2021
Try the Matlab onramp course. It will teach you all the basics you need to get yourself started.
Once you've done that, the documentation will be your best friend for all things Matlab. If you want to learn how to plot two variables against each other, google "matlab plot" and the top result is the manual on how to use the function, the inputs it can take and multiple examples.
Cris LaPierre il 14 Gen 2021
Agreed. Ch 9 of MATLAB Onramp introduces plotting in MATLAB.
Btw, you have not shared your data with us. Your mat file is actually a function for importing a mat file.
as text.
Unable to read file 'tidegauge.mat'. Input must be a MAT-file or an ASCII file containing numeric data with same number of columns in each
row.
>> type('tidegauge.mat')
% Imports data from the specified file
% Auto-generated by MATLAB on 14-Jan-2021 09:39:26
% Import the file
% Create new variables in the base workspace from those fields.
vars = fieldnames(newData1);
for i = 1:length(vars)
assignin('base', vars{i}, newData1.(vars{i}));
end

Accedi per commentare.

Risposte (1)

Priyanka Rai il 1 Feb 2021
MATLAB Onramp introduces how to “Visualize variables using MATLAB's plotting functions” in chapter ‘Plotting data’.
To plot waveform from waveform library, you can use this function:
plot(pulselib,idx)
Refer this documentation for further details:
0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by