Community Profile

photo

Rik


Last seen: Today Active 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.

Statistics

All
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Draw Letters
  • Community Group Solver
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Indexing I Master
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon

View badges

Content Feed

Answered
How can I use fprintf to print matrix by column?
fprintf tranverses the input in a column-major order. If you want to change that, you can't, so you will have to flip the array ...

alrededor de 15 horas ago | 0

Answered
I wrote this code and it didn't work and its gave me " Unrecognized function or variable 'seq' " error , What I can do to sole this error??
Apparently your code doesn't guarantee the creation of the seq variable. Since it only occurs in block starting with Test=='T', ...

alrededor de 15 horas ago | 0

Answered
How to check for data normality using kstest?
If you want to test if your data is from a standard normal distribution you should not change it before calling kstest. If yo...

1 día ago | 0

Answered
How can I mouse pick up and move
You can do this with the WindowButtonDownFcn (or the equivalent for uifigures: ButtonDownFcn). Inside that callback you can ret...

3 días ago | 0

Answered
How can i read in a .txt file without the first column gets saved?
I prefer not to mix tasks. I first read my file, then I do the processing. It is generally a lot easier to remove parts of char ...

3 días ago | 0

Answered
Mathmatica saving Matlab files as Wolfram Mathmatica Package files
Your files have not changed, only the description your OS displays. You should look up a guide for your specific OS. On windo...

4 días ago | 0

| accepted

Answered
graph with two formulas
You probably want the errorbar function: x = 1:10:100; y = [20 30 45 40 60 65 80 75 95 90]; err = 8*ones(size(y)); errorbar(...

4 días ago | 0

| accepted

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

4 días ago

Answered
Pressure drop script is not running
If you have problems with a function, you should really check the documentation. The input function does not work like you expe...

4 días ago | 0

| accepted

Answered
How to extract common points from a csv file with same Id?
The easiest way is probably with histcounts (or histc on old releases).

7 días ago | 0

Answered
Is the Raspberry pi MATLAB and SIMULINK support package compatible with the raspberry pi 400?
The Pi 400 is identical to the Pi 4 in most relevant aspects, so I think you can expect it to work.

7 días ago | 0

Answered
How to add 3th moving ball
If you replace numbered variables with arrays you can use simple loops with indexing. With your current setup you will have to c...

7 días ago | 0

Answered
Replacing for loop in the function
What you want is not possible. Depending on what f is there might be ways to avoid the loop and use vector-operations instead, b...

9 días ago | 1

Answered
Why do I get the error '??? Output argument ‹variable› (and maybe others) not assigned during call to ‹function›.' ?
The error is in getgamspath. Consider this function: function [output1,output2]=IncorrectFunction output2=1; end Running it ...

9 días ago | 0

Answered
how to define and write the first line of a function while one of the inputs are a matrix with strings as entries (strings are defined in the body of function)
You can only have variable names in your function signature, not any indexing. function PS=level2(NOH,NOC,tetta,A)

13 días ago | 0

| accepted

Answered
How to load multiple .mat files containing timetables into the workspace and concatenate them vertically
If you use struct2cell (either inside your loop or in a cellfun) you can extract the data itself. Then you should be able to use...

14 días ago | 0

Answered
what is the alternative of cd in .executable app ?
You can use && to execute another command if the first one completes successfully: doscmd = [... 'cd /d "' pathTargetFiles...

14 días ago | 0

| accepted

Answered
Getting wrong results while calling a function.
Some numbers cannot be represented exactly in binary. You will either need to round both numbers to make sure they have the exac...

15 días ago | 1

Answered
How to access recent comments in the FileExchange?
In the activity feed you can select the 'Files' section, where you can see only the FEX-related activities. You do need to remem...

17 días ago | 1

| accepted

Answered
How the number of times n of the patchwork increase?
You don't check if your image is actually large enough to allow 6000 unique indices. You should either reduce the number of samp...

19 días ago | 1

| accepted

Answered
Plot median values in a bin (binned plot)
You can try <https://www.mathworks.com/matlabcentral/fileexchange/98239-gridbin gridbin>. I haven't used it myself, but it se...

19 días ago | 0

| accepted

Answered
Compiler Toolbox - Generate Portable versions
To my knowledge this is only possible if all target machines have Matlab installed (or the MCR). An alternative would be to u...

19 días ago | 0

Answered
lsqnonlin for 2 independent variables
You should merge x and y to a single variable (i.e. a 2 element vector). That way you can do this with a single call to lsqnonli...

19 días ago | 0

| accepted

Answered
Standalone App installation folder
I personally use this function to store persistent files regardless of OS and runtime version: <https://www.mathworks.com/matlab...

25 días ago | 0

Answered
Download files from https server using username and password
You should be able to use websave. You can provide a username and password in weboptions: weboptions

alrededor de 1 mes ago | 2

| accepted

Answered
how to export multiple .mat files to csv using the automation script?
Load to a struct: base=sprintf('mat_file%d',1); S=load([base '.mat']); data=[S.([base '_Inputs']) S.([base '_Outputs'])]; ...

alrededor de 1 mes ago | 0

| accepted

Answered
Split comma seperated values inside a cell in to multiple columns
S=load(websave('split_mat.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/709142/split_mat.mat')); split_m...

alrededor de 1 mes ago | 0

| accepted

Answered
Can u use filtfilt with structfun?
You need to use either a function handle, or create an anonymous function. Your syntax does neither. Try this modification. % H...

alrededor de 1 mes ago | 1

| accepted

Answered
Handles not getting updated from pushbutton using GUIDE
Your looping function doesn't store the modified handle struct. guidata(hObject, handles); %put this before your return st...

alrededor de 1 mes ago | 1

| accepted

Load more