Just some student

Answered

How to use If and for Random Matrices???

So the way without the for and if loops is: X=rand(5,8) X(X<(0.5))=0; X(X>(0.5))=1; if you really want to use loo...

How to use If and for Random Matrices???

So the way without the for and if loops is: X=rand(5,8) X(X<(0.5))=0; X(X>(0.5))=1; if you really want to use loo...

4 years ago | 1

Question

Scatter not ignoring NaN in image

Hey everyone, I need your help for a short moment. I used "scatter" to plot the following image. <</matlabcentral/answers/upl...

4 years ago | 2 answers | 0

Answered

[Help me, please] How to find 3 point maximum matrix in matlab ?

I am not sure if this is what you wanted, but I managed to recreate what the code should be doing to get your results. A=[7...

[Help me, please] How to find 3 point maximum matrix in matlab ?

I am not sure if this is what you wanted, but I managed to recreate what the code should be doing to get your results. A=[7...

4 years ago | 1

| accepted

Answered

How to select an array without element i

This is not pretty, but it works: a =[1;4;7;11] n = 4 V = zeros(3,n) for i=1:n V(:,i)=a([1:i-1...

How to select an array without element i

This is not pretty, but it works: a =[1;4;7;11] n = 4 V = zeros(3,n) for i=1:n V(:,i)=a([1:i-1...

4 years ago | 1

Answered

How to detect shape within image

This might help you: <https://de.mathworks.com/help/images/ref/imcontour.html imcontour>

How to detect shape within image

This might help you: <https://de.mathworks.com/help/images/ref/imcontour.html imcontour>

4 years ago | 0

Answered

I need to write down a function 'linzav' which needs to check is the given set of vectors linearly dependent or independent. If it is dependent, write down one vector as linear combination of others?

A way to start might be something like this: Vec_1=[1;2;3] Vec_2=[2;4;6] Lin=Vec_1./Vec_2 if all(Lin == Lin(1)) ...

I need to write down a function 'linzav' which needs to check is the given set of vectors linearly dependent or independent. If it is dependent, write down one vector as linear combination of others?

A way to start might be something like this: Vec_1=[1;2;3] Vec_2=[2;4;6] Lin=Vec_1./Vec_2 if all(Lin == Lin(1)) ...

4 years ago | 0

Question

Increase the resolution of contour

Hello, so I tried to plot a coast line with contour. All I did is: Loading the Data (blue=1 is land, green=0 is water) and ...

4 years ago | 1 answer | 0

Question

Switch-case error message by matlab

Hey guys, I got this "problem" I made a switch-case thingy and it is working, but matlab shows me these red bars at the right ...

4 years ago | 0 answers | 0

Question

How do I let Matlab know which functions to call ?

So what I want to do is basically something like this: Stokes = 'enabled' Wind = 'enabled' Flow = 'disabled' I wan...

4 years ago | 1 answer | 0

Question

What does "@" do ?

So this is a simple question. I found some code that uses "@" and I looked it up in the matlab documentation, but I did not fin...

4 years ago | 1 answer | 1

Question

Using a matrix in scatteredInterpolant

Hey guys, so I got the following problem: I want to interpolate my matrix (size 220x180x1801) onto a new grid (of course size ...

4 years ago | 0 answers | 0

Question

How to plot rows of two matrices in different colors without for loop

Hey guys, I need your help. So I got two matrices x and y. They are currently 4135*1441 large. So what I want to do is basic...

4 years ago | 1 answer | 0

Question

Faster interpolation than interp2 ?

Hey guys, I have a question. I am currently using interp2 for interpolation of single points on a grid. In my case it is ...

4 years ago | 1 answer | 0

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

4 years ago

Question

integral length of turbulence

Hey guys, I need your help. It is about the integral length of turbulence flow. So we got data from some wind measurement, recor...

5 years ago | 0 answers | 0