Feeds
질문
Best way of drawing multiple circles and updating their position
What is the best way to draw a variable number of circles in a plot and update their position? I have tried F = rectang...
6년 초과 전 | 답변 수: 3 | 0
3
답변질문
Define an ellipse with a given angle and find if a point lies inside its boundaries
<</matlabcentral/answers/uploaded_files/116287/Screenshot%20from%202018-05-06%2015-58-52.png>> I have a number of points repr...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Update viscircles position in an interactive plot
I am creating a circle at a specified position using F = viscircles([Xposition Yposition], radious); Later on the code...
6년 초과 전 | 답변 수: 0 | 0
0
답변질문
Plot a moving dot inside a quiver plot that is constantly being updated
I have the following code that will create a quiver plot (imagine a team of players in a football game) and I would like to upda...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
Find neighboring nodes in a list of node positions
I have two vectors of X and Y positions x = randn(10,1); y = randn(10,1); So *x(1)* with *y(1)* together make the po...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
How to compute softmax and its gradient?
I am creating a simple two layer neural network where the activation function of the output layer will be softmax. I have thi...
7년 초과 전 | 답변 수: 0 | 1
0
답변질문
Get bits of number.
I have a _16 bit_ double I got from using *wavread* that I want to get the first _8 bits_ from. As an example lets say I hav...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Function similar to isnan for zeros
Is there a function that does what isnan does but with zeros?
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
Create black columns/rows in image.
Hi everyone, I have an image and I want to only keep visible small patches of lets say 8x8 alternatively. So I start at th...
거의 10년 전 | 답변 수: 2 | 0
2
답변질문
Find struct size in bytes.
Hi all, I have a struct element that contains some vectors and another struct that in it's turn contains some more data. What...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
Matrix indexing, getting back my original matrix.
Hi, I have a matrix mat= [ 1 2 3 4 5 6 7 8 9; ... 1 2 3 4 5 6 7 8 9; ... 1 2 3 4 5 6 7 8 9; ... ...
10년 초과 전 | 답변 수: 2 | 0
2
답변질문
Correct way of using blockproc
I have a matrix, and a function similar to function val = name(matWin, a, b, c) What is the right way of calling _blockp...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
Quickly create a vector of ones and zeros
My question is if there is a way to create a vector of zeros vec = 0 0 0 0 0 0 0 0 and specify a position lets s...
10년 초과 전 | 답변 수: 5 | 0
5
답변질문
Apply function to image window.
Hi all, After reading an image and converting it to gray I want to apply a simple function I created est = findest(seg...
10년 초과 전 | 답변 수: 0 | 0
0
답변질문
Using a base bigger than 36
Hi everyone, Do you know how can I possibly transform a vector that could be _base2_ , _base7_ , but also bigger like _base1...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
Matrix with all possible value combinations
Hi everyone, I have a quick question. Lets say i want to form a matrix with all possible combinations of some acceptable valu...
10년 초과 전 | 답변 수: 1 | 2
1
답변질문
Import .csv that has the characters '-'
I have an .csv file as you can see below and was wondering how to import it into matlab. 'csvread' wont work from what I've tr...
거의 11년 전 | 답변 수: 1 | 0
1
답변질문
Use abslolute colormap scale.
Hi everyone, I have a quick question. Lets assume that we have a two dimentional matrix and each of its values represents the t...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to use an absolute scale with colormaps
Hi everyone, I am using image to plot a matrix of some heat data, the thing is that i want a specific color mapped in a spec...
거의 12년 전 | 답변 수: 1 | 0
1
답변질문
Stop a while loop using a GUI
Hey everyone, I need to stop a while loop using a 'Stop' button in a GUI and i was wondering what are the best ways of doing...
거의 12년 전 | 답변 수: 3 | 0
3
답변질문
Dynamicaly show size of imrect
Hi guys, I wanted to know is there a way to make imrect show its x and y length while the user is moving it inside the axes. ...
거의 12년 전 | 답변 수: 1 | 1
1
답변질문
Make button down function work for objects inside axes.
Hi, I have a quick question, I am using the "WindowButtonDownFcn" in order to get the location i clicked inside an axes object...
거의 12년 전 | 답변 수: 1 | 1
1
답변질문
Matlab GUI problem with multiple panels
Hello, I have created this big GUI(not using guide) that has 3 main panels, each one of them with different axes and buttons....
거의 12년 전 | 답변 수: 1 | 0
1
답변질문
Compute average of each value in a matrix without using for
Hi all, I was wondering is it possible to alter each value of a matrix based on the average value of its neighbors, wihtout u...
대략 12년 전 | 답변 수: 1 | 0
1
답변질문
Use a nx2 matrix to indicate desired positions on another matrix
Hello everyone, I have a quick question, how can i use the matrix lets say pos = [1 2; 3 3]; as a guide to change the...
대략 12년 전 | 답변 수: 1 | 0
1
답변질문
Update a text object's position used with a movable rectangle.
Quick question, Lets say i have created a rectangle using h(i) = imrect(gca, [1,1,4,4]); and then i add a text object ...
12년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to pass values into addNewPositionCallback
Hey guys, I am using the following line of code id(i) = addNewPositionCallback(h(i),@updateFun); but when i try to mo...
12년 초과 전 | 답변 수: 0 | 0
0
답변질문
How can i know what object created with imroi did i move
Lets say i create a bunch of rectangles usind the following way for i = 1:2 h(i) = imrect(gca, compdata(i,:)); ...
12년 초과 전 | 답변 수: 1 | 0
1
답변질문
Pass variables into set(frt,'WindowButtonDownFcn',@mousePos)
Quick question, how can i pass some other variables that i want in mousePos function mousePos(hObject,~) mPos=get(hObjec...
12년 초과 전 | 답변 수: 2 | 0
2
답변질문
Store the objects you create and then pass them into another function
Hi everyone i have the following code, and what i want to do is somehow make it update each time the value of the component ...
12년 초과 전 | 답변 수: 0 | 0