Community Profile

photo

Stijn Haenen


Last seen: Today
76 total contributions since 2019

Stijn Haenen's Badges

  • 3 Month Streak
  • First Submission
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
What is z1 appearing when solving this nonlinear system for x y and z?
You can try to use the function vpasolve instead of solve

5 days ago | 1

Answered
Legend with different text color and Latex Interpreter
I dont think it is possible to change the color with the latex interpreter. It can be used to make text bold for example and ins...

5 days ago | 0

Answered
How can I create a point shapefile from a csv (or matrix) with lat/long columns?
Im not sure what you want, but maybe this can help: for i=1:1780 T.(sprintf('var%g',i))=sprintf('var%g',i); end This cre...

6 days ago | 0

Answered
plot fails with -Inf
you can use Px(isinf(abs(Px)))=0; to set all -Inf values to 0

6 days ago | 0

Answered
How do I display the output of my stats_
Im not sure what you mean. With the command 'gcf' you get all the stats of the figure. The stats of the maskImage are in your ...

13 days ago | 0

Answered
How can I perform region growing with two seed points?
Can you upload an image, and give examples of the values: I,x,y,x2,y2,reg_maxdist1,reg_maxdist2, then we can run the code and ch...

14 days ago | 0

| accepted

Answered
Creating a run log/count with a for loop within a table.
I think this is what you are looking for: switch_list=zeros(length(data),1); switch_list(2:end)=data(2:end,2)-data(1:end-1,2);...

19 days ago | 0

Answered
How to extract values from an array?
val1 contains the numbers x(1), x(2) x(3) and x(4). val2 contains the numbers between x(1) and x(4) with steps on 1, but x(4) is...

19 days ago | 0

Answered
How do I find a center of rotation having a set of 3D points ?
If each point represent the same amount of mass, the center of rotation is just the average position of all poisitions, when eac...

26 days ago | 0

Answered
how can i split a 400*400 matrix into smaller one
what about this: num_list=0:40:400; data=[]; Image=zeros(400); for a=1:numel(num_list)-1 for b=1:numel(num_list)-1 ...

1 month ago | 0

Answered
save data to a new row in a table for each iteration of a for loop
something like this might be useful for you: data=[]; for i=1:0.1:10 data(:,end+1)=[i^2;i^3];%just example of data end

2 months ago | 0

Answered
It's posible to make figure always maximized and block minimized option?
You can do this with position function of a handle: h=figure(); h.Position=[1,41,1536,749] % depends on your screen size, 1 41...

2 months ago | 0

Answered
How not to delete one element of a figure when using cla?
Maybe you can delete one of the 'Children' of the figure. type: h.Children and check if there is any data that can be delete...

2 months ago | 0

Answered
Computing an specific numerical Integral
I think you should use a Riemann integral to estimate the answer of this integral. Or maybe wolfram Mathematica can solve it f...

2 months ago | 0

Answered
How to copy files form one directory to another
cd('source_folder') filenames=dir; for i=3:length(filenames) copyfile(filenames(i).name,'destination_folder') end

2 months ago | 0

Submitted


steppermotor
Easy control of a bipolar (4 cable) stepper motor, power by usb port and controlled with audio signal via the audio jack output....

2 months ago | 4 downloads |

Thumbnail

Answered
Changing dimensions of a cell array
You can do this with: ' field=field';

2 months ago | 0

| accepted

Answered
Why wont matlab start up on my laptop?
I have the same problem sometimes. On my computer this is caused by a wrong target location of my desktop shortcut. The shortcut...

2 months ago | 0

Answered
How do you randomly choose a grey bar in picture to turn white?
This is most likely not the best way to do it but it works: picture=zeros(50,50); picture(10,10:12)=100; picture(20,10:12)=10...

2 months ago | 1

Answered
function serialportlist is not working
I do not know if i have such a device. I want to play audio files via different USB speakers, do you have any tips how to do thi...

2 months ago | 0

| accepted

Question


function serialportlist is not working
When I use the function 'serialportlist' to identify the serial ports on my laptop i get a 1x0 empty string array. ports=serial...

2 months ago | 1 answer | 0

1

answer

Answered
How can I extract values from an N x 2 matrix?
What about this?: cord=zeros(1,2); for i=1:100 xx = input('Enter x coordinates in the form [0]'); yy = input('Enter ...

2 months ago | 0

Answered
Replace -99 with NaN
x=[1 2 -99 3 4 -99 5 6 -99]; x(x==-99)=NaN;

2 months ago | 0

Answered
Custom colour bar, excluding the Blue from RGB.
Maybe you can try this: h=figure(); A = [200 200 200 200 200; 200 200 200 200 200; 200 200 100 200 200; 200 200 200 200 200; 2...

2 months ago | 0

Answered
Error: Inner Matrix Dimension Must Agree
you should use " .* " instead of " * " .

2 months ago | 1

Answered
Index exceeds matrix dimensions error
You should use ( and ) not { and }. Try this code: t=zeros(10,1); for n=1:10 if n/2>2 t(n)=t(n-1)+1 end end

3 months ago | 0

| accepted

Answered
How can I get the column number of a matrix with smallest error to my value?
Mybe you can use: [x,y,z]=find(....)

3 months ago | 0

Answered
Efficient way of selecting columns of a matrix
You can get the data from different columns also in two (maybe more?) ways: a=[1:10;11:20;21:30]; tic for i=1:10000 a(:,...

3 months ago | 0

Answered
How can I convert all string cells in a table to numerical values?
If you use the import data tool, you can chose to ouput the data in matrix instead of a table. With this tool you can also gene...

3 months ago | 1

| accepted

Load more