Question

how to find value of x for a known value of y(x), using fplot?

Hi ! I am using the function fplot to plot 5 functions. and the plot is working good. now for each function I am trying to...

mer än 3 år ago | 1 answer | 0

Question

How to keep the slider position the same after retrieving its value?

Hi ! I am using a slider and a pushbutton to get the value from the slider. but each time the push button is pressed the pos...

nästan 4 år ago | 1 answer | 0

Question

How to run functions in GUI opening function and pass variables?

Hi ! I would like to do the following (not sure if it is possible) : I would like to create a GUI and in the GUI_OpeningFc...

nästan 4 år ago | 0 answers | 0

Question

How to run matlab script within GUI file then wait for the GUI input in the script ?

Hi ! I have created a matlab script ("main.m") which with a loop. In each iteration I call a matlab GUI slider to get an in...

nästan 4 år ago | 0 answers | 0

Question

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

nästan 4 år ago | 1 answer | 0

Question

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

mer än 4 år ago | 0 answers | 0

Question

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

mer än 4 år ago | 1 answer | 0

Question

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

mer än 4 år ago | 2 answers | 0

Question

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

mer än 4 år ago | 1 answer | 0

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

mer än 4 år 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...

mer än 4 år 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...

mer än 4 år 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 ?

mer än 4 år ago | 2 answers | 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...

mer än 4 år 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...

mer än 4 år 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...

mer än 4 år 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...

nästan 5 år 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...

nästan 5 år 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...

nästan 5 år 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...

nästan 5 år 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*...

ungefär 5 år 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...

mer än 6 år 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...

mer än 6 år 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...

mer än 6 år 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. ...

mer än 6 år 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: ---- ...

mer än 6 år 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...

mer än 6 år ago | 1 answer | 0