photo

Gareth


VersionBay

Last seen: 5 dagen ago Active since 2018

Followers: 0   Following: 0

Message

Ex MathWorker. I am now co-founder of a company called VersionBay.

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 3
  • 3 Month Streak
  • Quiz Master
  • Speed Demon
  • Personal Best Downloads Level 2
  • First Submission
  • GitHub Submissions Level 1
  • Explorer
  • Creator
  • Knowledgeable Level 2
  • Revival Level 2

View badges

Feeds

View by

Answered
rearranging textfile that contains commas
There is probably an easier way of doing this... but this should work: a = fileread('example.txt'); % txt file that you share...

meer dan 5 jaar ago | 0

Answered
Extracting numerical results from a text file at different positions
good catch, my bad:) it was late at night. This should work. In either case if you are learning MATLAB, regexp are very powerful...

meer dan 5 jaar ago | 0

| accepted

Answered
Extracting numerical results from a text file at different positions
There is probably an easier way to do this... but this should help. (I am using R2018b). a = fileread('0295_PhD_AB~Analysis...

meer dan 5 jaar ago | 1

Answered
Compiling excel files from subfiles
There might be a more elegant way than what I am proposing but this should work: ds = spreadsheetDatastore(pwd,'IncludeSubfol...

meer dan 5 jaar ago | 0

| accepted

Answered
Compiling excel files from subfiles
Try the following: ds = spreadsheetDatastore(pwd,'IncludeSubfolders',true) where pwd is the root folder.

meer dan 5 jaar ago | 0

Answered
Compiling excel files from subfiles
Hi Jen , I am using R2018b, and there is a wonderful datatype: datastore which does this for you. A variation of it is the sp...

meer dan 5 jaar ago | 0

Answered
How to convert csv file containing MAC addresses to JSON array
I did the following: Used Import Wizard, generated the script belo I am on R2018b, so I used the function jsonencode at the en...

bijna 6 jaar ago | 0

Answered
how to fix too many output argument?
Dear Ma.Cathyrine Ravina, There are several ways of doing this: Use a Live Script (with control slider bar) Create a MATLA...

bijna 6 jaar ago | 0

| accepted

Answered
How to find separate graphs
Ro=[0 0 0 1 0 0; 0 0 1 0 1 0; 0 0 0 0 0 0; 0 0 ...

bijna 6 jaar ago | 0

| accepted

Answered
if NaN then...
Have you tried using the function isnan? https://nl.mathworks.com/help/matlab/ref/isnan.html?searchHighlight=isnan&s_tid=doc_sr...

bijna 6 jaar ago | 4

Answered
How to insert code segments from another MATLAB file?
There usually are 3 ways that I have seen people do this. in your func.m add a comment with a special TAG (e.g. %#mycode), th...

bijna 6 jaar ago | 1

| accepted

Answered
Retrieve data from several folders and structures
If I understand correctly you have data files in different folders and you want to take subset of that data and reorganize it in...

bijna 6 jaar ago | 0

| accepted

Answered
How can I use pushbuttons in GUI to categorize a "like" or "dislike" of a image
Here is a very simple away around this... in the directory where you have the images try the following code: im = imageDatast...

bijna 6 jaar ago | 0

Answered
How to get environment password in script/function
The MathWorks does have a Database toolbox which does exactly what you are describing. That being said you probably would have t...

bijna 6 jaar ago | 0

Answered
i want to download MATLAB Arduino support package. How i can ???
This should help: https://nl.mathworks.com/matlabcentral/fileexchange/47522?download=true I got this link from: https://nl.ma...

bijna 6 jaar ago | 0

Answered
Read the output line by line
Hi, Not sure if I understand the problem correctly... are you trying to given an image with text get the text into MATLAB? If ...

bijna 6 jaar ago | 0

Answered
Creating the Snake game using a classdef
Try adding drawnow after the plot.

bijna 6 jaar ago | 1

| accepted

Answered
How can I get the maximum line of multiple graphs, starting from different x-values?
Maybe I miss understood but you could use min and max to achieve this: t = 0:.1:2*pi; for i = 1:4, y(i,:) = sin(t*i*2*pi);end;...

bijna 6 jaar ago | 0

Answered
How to fix number of elements in for loop?
There are couple of things here however the first is to get your code working: q= 0.2; E = 200*10^8; a= -6:6; n=numel(a); ...

bijna 6 jaar ago | 1

| accepted

Answered
Write to txt, delimited by char(10)
x = ['a' char(10) 'b']; fp = fopen('test.txt','w'); fwrite(fp,x); fclose(fp); I am on a Mac and using R2018b. That being sai...

bijna 6 jaar ago | 0

| accepted

Answered
color of line plot with marker problem
There are a couple of ways to solve this (I am using R2018b): plot(x,y,'-s','MarkerSize',10,'Color','red',... 'MarkerEdgeCol...

bijna 6 jaar ago | 0

Answered
Checking/Counting values in a given Timewindow
Hi JamJan, If I understand correctly you have a matrix with 2 rows, the first row shows times, and the second 1. You are aski...

bijna 6 jaar ago | 1

Answered
Can I write the output of a 'summary' command of a 'table'-variable to a variable ?
I believe as of R2017b you can do the following: a = summary(tab) This will return a structure with the information that s...

bijna 6 jaar ago | 0

Answered
How i Calculate the average number of even numbers in an array?
Hi Tomer, I am not sure if I understand your question correctly. In MATLAB to calculate the average you would use the func...

bijna 6 jaar ago | 0

Answered
How to copy and paste a single row in an excel file to another excel file?
I am using R2018b, and there are a couple of ways of solving this. I like the following: ds = spreadsheetDatastore(pwd,'Range...

bijna 6 jaar ago | 0

| accepted

Answered
Image plot I am not able to create
I am using R2018b: a=readtable('dte2.txt'); plot(a.x_coordinate,a.y_coordinate,'.') Does this help?

ongeveer 6 jaar ago | 0

Answered
Histogram: put mean and std in the legend
I am using R2018b and my understanding is that you want to have: each line on your plot not named data, but the legend itself h...

ongeveer 6 jaar ago | 1

Answered
How can I insert an vector graphic in App Designer in Matlab?
Try this: In MATLAB: imshow('file.svg') If you are using App Designer: imshow('file.svg','Parent',app.UIAxes)

ongeveer 6 jaar ago | 1

Answered
generate a unique ID
This has already been asked: https://nl.mathworks.com/matlabcentral/answers/240447-using-java-uuid-in-matlab#answer_191523 tem...

ongeveer 6 jaar ago | 1

Answered
how do i get the higher values into the bins
Maybe try using histcounts Here is a small example: X = randn(1000,1); edges = [-5 -4 -2 -1 -0.5 0 0.5 1 2 4 5]; N = his...

ongeveer 6 jaar ago | 1

Load more