Community Profile

photo

Stijn Haenen


31 2019 年以降の合計貢献数

Stijn Haenen's バッジ

  • Knowledgeable Level 2
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
How to plot Gantt Chart for job shop scheduling?
Do you mean something like this: Number_of_tasks=20; width=200/Number_of_tasks; startDates=1:20; endDates=3:22; for i=1:Num...

3日 前 | 0

回答済み
Plotting Terminal velocity Vs particle diameter
With this script you overwrite vt and dp every loop, so at the end you only have 1 single value for vt and dp and you cannot plo...

3日 前 | 0

| 採用済み

回答済み
Loop is not running in Matlab
There are some errors in your script: i=0.0015:-0.0015:0.00001; Only gives the number 0.0015 as output, if you want that i goe...

7日 前 | 0

| 採用済み

回答済み
Random shuffle vector such that all elements fall in new index positions
Try this: v=[1:100]; %your vector List=1:numel(v); for i=1:numel(v) newList=List; newList(i)=[]; newpos=datasa...

7日 前 | 0

回答済み
Detecting Entire Column has the same integer value
Try this: if a(:,1)==a(1,1)&mod(a(1,1),1)==0 Ans=[1 0]; else Ans=[0 0]; end

10日 前 | 0

| 採用済み

回答済み
Polyfit is giving incorrect coefficients for correct plot fit.
If I run this script i get a good fit, see image N=10:10:60; t1 = [3.5 6.5 10 12.5 15.5 19]; t2 = [3 6.5 10 13 16 20]; t3 = ...

10日 前 | 0

| 採用済み

回答済み
nccreate overwrite existing file
Have you tried this: if exist(filename) delete filename end nccreate.....

10日 前 | 0

| 採用済み

回答済み
How Can i write a function that takes a structure array and returns this array with bubble sorting
Maybe this will work: ages=[structurearray.age]; [a,b]=sort(ages); newstructurearray=structurearray(b); The used structure i...

10日 前 | 0

回答済み
year function does not read properly
year(input) tells you in which year the day of the input is, where the input is the day number, starting from first of january 1...

12日 前 | 0

回答済み
Extracting a value from a 3D table
Sure, In the first line "Num_nan=find(isnan(Table));" you get the positions of the NaN, but this is just a number. For example,...

13日 前 | 0

回答済み
How to solve differential movement equation?
I dont think you can solve this, a relation between x and y, or x and t, or a direction of the force is required.

13日 前 | 0

回答済み
Extracting a value from a 3D table
Maybe this works, for output(a,b,c): Num_nan=find(isnan(Table)); c=floor(Num_nan/(81*81))+1; b=floor(rem(Num_nan,81*81)/81)+1...

13日 前 | 0

| 採用済み

回答済み
How to reuse the same format
Maybe this will work: a='%7.0f'; fprintf(strcat('defaults->',repmat(a,1,9),'\n'),header);

13日 前 | 0

回答済み
Guys, i have no idea how to proceed with these two questions, would you please help me out, many thanks guys.
2.3: syms k vpasolve(det(R-k*i3)==13,k)

13日 前 | 0

| 採用済み

回答済み
Optimize evaluation of triple infinite series using FOR loops
Maybe you can compute p2vec{i,j} outside the k-for loop and multiply it inside the for loop with the k-factor.

22日 前 | 0

回答済み
Callback function not forwarding the variables.
If you have the edges of the square you can maybe use this example to get the number of points inside the square. x=1:100; y=1...

22日 前 | 0

回答済み
How to limit the movement of a rectangle?
maybe this will work: roi = drawrectangle('Position',p ,'Color',[1 0 0]); t=0; while t<1 pause(0.15);pos=get(roi,'positi...

22日 前 | 0

| 採用済み

回答済み
How to limit the movement of a rectangle?
Maybe you can use the function: get(roi,'position') But i'm not sure what you want.

22日 前 | 0

回答済み
How to setup common file in .XML or .txt format to declare all variables globally for using it in simulink and stateflow?
Creating a txt file can be done with: a=10; b=20; c=30; d=40; FP=fopen(sprintf('textfile.txt'),'wt'); fprintf(FP,'variabl...

22日 前 | 0

回答済み
How to save data stored in a cell for easy transfer to excel?
You can use the function writematrix: writematrix(Data,'filename.xlsx')

22日 前 | 0

回答済み
Replacing the last value after consecutive Nan
Try this: for i=2:numel(A) if isnan(A(i-1))&&A(i)>0 A(i)=0; end end

23日 前 | 0

| 採用済み

回答済み
random matrix full rank
Hi, Try this one: T=6; a=rand(T); m=tril(a,-1); matrix=m+m'+eye(T).*rand(T);

24日 前 | 1

| 採用済み

回答済み
Index error during encryption
You can use this script: l = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','...

24日 前 | 0

回答済み
Polyshape: stop Connecting first and last points.
Hi, do you mean this? load('Data'); a=polyshape(Data(:,1),Data(:,2)); b=regions(a); area=[b(2,1).Vertices(:,1) b(2,1).Verti...

24日 前 | 0

回答済み
Separating Multiple Columns of Data Based on a Value in One Column
You can make a structure for each ROI like this: x=data; sep_x=struct; for ROI=[1,2,5,8]%?? a=find(x(:,1)==ROI); se...

29日 前 | 0

回答済み
What wrong with this?
you dont need 'str2double' if you ask for an input which should be a number

29日 前 | 1

回答済み
How to count the number of point and know their coordinates in a specified area from a scatter plot
Sure, Lets start with a simple example: x=1:10; If you want to make an array with all the vallues of x that are for example l...

29日 前 | 0

回答済み
How we can make a HeatMap like this?
Hi, Maybe not the best way but it works: velocityrange=-80:5:80; momentrange=-250:10:250; for i=1:numel(momentrange) fo...

29日 前 | 0

| 採用済み

回答済み
How to count the number of point and know their coordinates in a specified area from a scatter plot
Hi, This can be done with: bx=ax(abs(ay-1.5)<0.2); by=ay(abs(ay-1.5)<0.2); num_b=numel(bx);

29日 前 | 0

回答済み
How to import data from a .txt file that contains text and numbers
Hi, You can try this: text=('nitial Void ratio = 0.68'); a=find(text=='='); number=text(a+1:end); num=str2num(number)

約1ヶ月 前 | 0

Load more