Community Profile

photo

Rik


Last seen: Today
1.882 total contributions since 2017

E-mails with feedback/questions about FEX submissions are welcomed. In general I will post e-mails about Answers on the related page, unless there is good cause not to do so.

Contact

Rik's Badges

  • Ace
  • GitHub Submissions Level 1
  • Personal Best Downloads Level 3
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • 24 Month Streak
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Average multiple vectors with different lengths
Pad the shorter vectors with NaN and use the 'omitnan' flag in mean.

etwa 4 Stunden ago | 0

Answered
pop up menu & push button
You can retrieve the selections like this String1=get(handles.popmenu1,'String'); Selection1=String1{get(handles.popmenu1,'Val...

etwa 5 Stunden ago | 0

Answered
How can I query the content of a cell?
The same way you get the contents of any cell array: use curly braces. YourCell{n}==0 isnan(YourCell{n}) isempty(YourCell{n})...

etwa 5 Stunden ago | 0

Answered
Read Text File in Matlab
There are many ways to do this. One of the many ways is using the code below. It makes use of the readfile function which you ca...

etwa 8 Stunden ago | 0

| accepted

Answered
How to get a period of cosinus function ?
Because this is homework, I won't provide a copy-paste ready solution. If you follow the example from the documentation for fft...

etwa 9 Stunden ago | 0

Answered
Extract Strings of different lengths
The code below assumes there is only a single match for 'ETSL'. StartMETAR=strfind(rawdata,'ETSL')-19; EndMETAR=strfind(rawdat...

etwa 9 Stunden ago | 0

| accepted

Answered
keep scientific notation in plot title
If you want a specific notation you can enforce that with the sprintf function. Otherwise Matlab will _automagically_ pick a for...

ein Tag ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
tNow is a vector, so you can't store it in a scalar, which is what you are trying to do. You probably want to replace every inst...

2 Tage ago | 0

Answered
Separate values in a matrix greater than 0
So like this? isFlood=water_height>0;

2 Tage ago | 0

Answered
HELP for Error in gui_mainfcn(sui_State, varargin {:})
You have a problem if you don't have the fig file of a GUIDE GUI. You need both the m file and the fig file. This is one of the ...

2 Tage ago | 0

Answered
Hold on in for loop doesn't work
You are calling figure inside the loop. You need to put that outside of the loop, or make sure another way that you have a singl...

2 Tage ago | 0

Answered
principle component analysis (PCA)
Read the documentation: coeff = pca(X) returns the principal component coefficients, also known as loadings, for the n-by-p dat...

3 Tage ago | 0

Answered
Extracting "endpoints" from a skeleton image to enable a circle to be defined.
This can probably be improved, but this will find an approximate circle. It will slightly underestimate the radius, as it tries ...

3 Tage ago | 1

Answered
Fit two data sets with 3 fit parameters, one parameter is the same
As far as I'm aware, you can only fit a single function at once, so you can try something like this: f1 = @ (p,x1) p(1)./sqrt((...

3 Tage ago | 1

| accepted

Answered
Matlab system command doesn't work properly on linux platform
If you want to capture the output to a Matlab variable, you should use the second output: [status,response]=system('hostname -s...

3 Tage ago | 0

Answered
I had write the function for find the difference of maximum and minimum from each martix row and express it as matrix .
If you want a column instead of a row, why not transpose? And if you want both outputs, you will have to use a syntax with two o...

3 Tage ago | 0

Answered
how to run a code putting conditions on names cell
Convert the array to a 3D array: (patient,session,param_index). You can fill missing slots with NaN. That way it is just a matte...

3 Tage ago | 0

| accepted

Answered
How to suppress warnings when running Simulink simulation programmatically?
Unless Simulink is not playing nice, this should work: ... w=warning('off','all'); sim('rocket_sim'); warning(w); fprintf('...

3 Tage ago | 0

| accepted

Answered
find groups in datetime vector by date
Datetimevector=datetime([2020 2020 2020],[02 02 10],[3 3 4],[10 11 12],[0 0 0],[0 0 0]); rounded_to_day=datetime(year(Datetim...

3 Tage ago | 0

| accepted

Answered
Does course completion certificate will be provided for free courses?
Assuming you are talking about Matlab Academy: yes, you will be able to download a pdf with a certificate.

3 Tage ago | 0

Answered
intro to programing MATLAB, Matrix
You can use the colon to index all values in a dimension: IMG(2,2,:)=[100 255 255];%assign RGB values to a pixel You can also ...

4 Tage ago | 0

| accepted

Answered
change the colormap of a figure using another GUI
Whenever you are working with a GUI: use explicit handles. Many functions accept handles to the affected object as an input, col...

5 Tage ago | 0

Answered
about strings properties issstrprop
You forgot the 's' switch with your call to input: s= input('s: ','s'); isstrprop(s, 'alpha')

5 Tage ago | 0

| accepted

Submitted


Wayback Machine API
This functions acts as an API for the Wayback Machine (web.archive.org).

5 Tage ago | 2 downloads |

Thumbnail

Submitted


getUTC
get the current time in UTC

5 Tage ago | 2 downloads |

Submitted


isnetavl
Check for an internet connection by pinging one of Google's DNSes

5 Tage ago | 3 downloads |

Thumbnail

Submitted


readfile
read any (text) file, either UTF8 or ANSI

5 Tage ago | 13 downloads |

Thumbnail

Submitted


ifversion
Determine if the current version satisfies a version restriction

5 Tage ago | 0 downloads |

Answered
If else statement problem
ca is already smaller than 50 at the start of the loop, so the content of the while loop doesn't run. You could find this out...

5 Tage ago | 0

Answered
The min and max function return incorrect result!
You didn't notice the exponent: max(Features) ans = 1.0e+09 * If you want to control how your data shows up in ...

5 Tage ago | 1

Load more