질문

How can I implement code online?

Hi ! I would like to ask about the best way to put my matlab code online and be excutable even for those who do not have mat...

13일 전 | 답변 수: 1 | 0

질문

executing an m file with user input and plots using app designer

Hi! I have worked on some program that has a loop and each time it takes user input using GUI slider and based on the input so...

5달 전 | 답변 수: 0 | 0

질문

filling each row of a matrix using values from a vector

Hello ! I want to fell certine element in a matrix in this way: for example matrix x=[0 0 0 0 ; 0 0 0 0 ; 0 0 0 0 ]; and ...

6달 전 | 답변 수: 1 | 0

질문

How to create a matrix out of all the possible combinations of a vector

Hi ! I want to fill a vector with specifice numbers of 1's and -1's, and the rest are zeros. And get all possible combinations...

6달 전 | 답변 수: 2 | 0

질문

How to control graph layout

I want to know if there is a way to change the layout of the graph to represent what I want. for now I connection of the nodes...

6달 전 | 답변 수: 1 | 0

질문

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...

8달 전 | 답변 수: 1 | 0

질문

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...

9달 전 | 답변 수: 1 | 0

질문

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...

9달 전 | 답변 수: 1 | 0

질문

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 ?

9달 전 | 답변 수: 1 | 0

질문

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...

9달 전 | 답변 수: 2 | 0

질문

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...

9달 전 | 답변 수: 1 | 0

질문

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...

10달 전 | 답변 수: 1 | 0

질문

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...

11달 전 | 답변 수: 1 | 0

질문

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...

11달 전 | 답변 수: 1 | 0

질문

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...

11달 전 | 답변 수: 2 | 0

질문

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...

11달 전 | 답변 수: 1 | 0

질문

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*...

1년 이상 전 | 답변 수: 2 | 0

질문

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...

2년 이상 전 | 답변 수: 2 | 0

질문

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...

2년 이상 전 | 답변 수: 0 | 0

질문

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...

2년 이상 전 | 답변 수: 2 | 0

질문

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. ...

2년 이상 전 | 답변 수: 1 | 0

질문

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: ---- ...

2년 이상 전 | 답변 수: 2 | 0

질문

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...

2년 이상 전 | 답변 수: 1 | 0