Community Profile

JohnGalt

Active since 2016

All

Content Feed

View by

How can I color a (circle) area in a scatterplot?
I don't have access to the scatterplot function but the technique you're looking for is called logical indexing... where you set...

4 years ago | 0

How to convert date and time present in same cell to a matrix having all values in elongated form like Y, M, D, H, Mi, S?
datevec(datestr('1/17/2018 16:20:37','dd/mm/yyyy HH:MM:SS')) and more generally dts = {'1/17/2018 16:20:37', '1/17...

4 years ago | 1

| accepted

I have to plot all the signals in one figure
if you want a new window for every for-loop try: function pushbutton2_Callback(hObject, eventdata, handles) % hObject ...

4 years ago | 0

Write a function SumNthRowSquares(M,n) that returns the sum of the squares of the numbers in the nth row of matrix M. Use ‘sum’ only to sum a vector. In other words, retrieve the appropriate row and sum it.
I presume you want the actual function? if so, save the following to a file. function out = SumNthRowSquares(M,n) out = ...

4 years ago | 0

make array of array like array within array
look into the 'cat' command in matlab help <https://uk.mathworks.com/help/matlab/ref/cat.html>

4 years ago | 0

Place several plots in perspective to show time evolution
typically when I have something like this i make a 'movie' by plotting into one window and updating the plot in a for loop... e....

4 years ago | 0

how to output last sample of every 16 samples
Not sure if I understand the question correctly but if you have an array myArray = 1:81; you can get every 16th value us...

4 years ago | 0

how to move text away from axis?
This may not be the most elegant solution but it is easily tailorable - if you don't rotate the lables you can append some white...

4 years ago | 0

how to round number in table to two digit number
If it's just a quick cleanup of the display of the numbers, you could just round the data in the table directly e.g. array...

4 years ago | 4

Programmatically change wallpaper in Windows 10?
this can be done with a '.cmd' file... which can be executed from the matlab command window using 'system()' ... this starts by...

5 years ago | 0

Rename a file while copying
hmm... ok so I'd recommend using 'dir' which returns a structure (see matlab help) ... also, look at the function 'fullfile' whi...

5 years ago | 0

Find max/min while ignoring data spikes
it looks like '-1' is some specific value which you want to ignore... so you remove all '-1's from the array before you calculat...

5 years ago | 0

How to use a batch mode to import files?
From this: files = dir('C:\Users\Deakin Uni\Documents\MATLAB\a\*1*'); it looks like you're only loading the first one... s...

6 years ago | 0

| accepted

How do i skip the first 4 rows and create a diagram from the values?
*skipping the first 4 rows*... rather than use the colon operator (':') by itself... use ('5:end') for example a = 1:8; ...

6 years ago | 0

Applying monthly coefficients to daily data
The key to a simpler and faster implementation of this is knowing that you can construct an array using an array of indices... ...

6 years ago | 0

| accepted

Submitted

NiallHurley/PipeData_ToFrom_Matlab
Server and Client Classes for passing data from one instance of Matlab to another using a .NET pipe

How to delete a record from mysql database from matlab?
Use this (doesn't require the database toolbox): <http://www.mathworks.com/matlabcentral/fileexchange/57195-niallhurley-mysql-m...

6 years ago | 0

i have problem when i would rotate xlabel of bar graph on matlab
<http://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabel-rotate>

6 years ago | 0

How can I read a specified, comma seperated text (txt) file line-byline?
Now, you say that you'd like the 3 numerical values which can be obtained by: fileID=fopen('data.txt','r'); % I've remo...

6 years ago | 0

| accepted

Submitted

NiallHurley/MySQL_Matlab
A class for querying/fetching/executing on a MySQL database using JDBC connector.