Question

or operation on the columns of a matrix ?

Hello! I have matrix S that contains zeros and ones. and I want to convert it to a column vector contianing one in the ith po...

ongeveer een maand ago | 1 answer | 0

Question

How to plot rows of matrix as pont in number of column dimensions

Hello! I have a matrix U with dimensions n by k. is there a way to plot the n rows as n point in k dimentions ? or awa...

ongeveer een maand ago | 1 answer | 0

Question

How can I plot data in one matrix and color the data differently using data from another matrix?

Hi ! I have a matrix with "data" with size n by 2. this matrix rows contain some value that I want to plot. and another mat...

ongeveer 2 maanden ago | 1 answer | 0

Question

I want to use the L0 norm ?

Hi ! I was trying to use the function norm(v,p). but p takes value from 1 to inf. How can I calulate the zero norm ?

ongeveer 2 maanden ago | 1 answer | 0

Question

How to concatenate k vectors together without knowing the value of k ?

Hello ! I have an array of different size vectors S. I want to get for example 3 of the vectors then put them all in one. af...

ongeveer 2 maanden ago | 2 answers | 0

Question

How to make a graph with nodes and edges

Hello! I am trying to use the function graph but I get the error. Undefined function or variable 'graph'. I am trying to ma...

ongeveer 2 maanden ago | 1 answer | 0

Question

creating a function getting the graident and passing variables to them

Hi ! I am trying to creat a function that I can both use to pass values and compute the gradient of that function. I tried...

3 maanden ago | 1 answer | 0

Question

determining the value of an x corresponding to specifec y from the graph

I have two vector that I used to plot the following. the vector used to plot the y axis does not contain the value 0.5 so I...

4 maanden ago | 1 answer | 0

Question

pick numbers from matrix with probability

Hi ! I have a matrix that contain the probability of two variables. is there a function that pick for example 6 numbers a...

4 maanden ago | 1 answer | 0

Question

what type of plot is this?

Hi ! I have an assigment where I should plot 2 normal random variable like this. but what type of plot is this? all exam...

4 maanden ago | 2 answers | 0

Question

vector function takes vector input ?

Hello ! I am having truble inserting vectors as an input to a function that is a vector what I did is I defined a function a...

4 maanden ago | 1 answer | 0

Question

How to solve second diffrential equation that look like this ?

I am trying to solve this equation using matlab and couple others. but I do not know why it does not work. d2y(t)/t + 2*...

9 maanden ago | 2 answers | 0

Question

How to solve Conversion to cell from double is not possible.

I am trying to create an array named actOld using this code for i=1:nPlayers uAve{i}=zeros(nRoads,1); actOld...

bijna 2 jaar ago | 2 answers | 0

Question

How to resume the program runing after a button press ?

Hi ! I have a program script that opens a GUI. the user should press one of many buttons. and the value of a global variab...

bijna 2 jaar ago | 0 answers | 0

Question

How to use GUI to change a value of a variable and use that variable in a script

Hi! I have a program that opens a GUI while its running, the thing is I want the user to press one of the buttons on the G...

bijna 2 jaar ago | 2 answers | 0

Question

getting the coordinate on an image

Hi, I want to get the coordination (x,y) on an image when clicked. I use the imshow(I); to display the image. ...

bijna 2 jaar ago | 1 answer | 0

Question

what does this error mean (Error using matlab.graphics.axis.Axes/set )

Hi! I want to make a plot where the Maximilian point to be plotted are 5. but I keep getting this error message: ---- ...

bijna 2 jaar ago | 2 answers | 0

Question

How can the numbers appears on an excel sheet correctly and not as wierd letters?

Hi! I have a problem in writing on an excel sheet. the data is stored correctly but the numbers are not appearing. the code m...

bijna 2 jaar ago | 1 answer | 0