Question

How to make patch edges invisible but still effected by lighting?

Hi, I am plotting a voxelized model using patch command. I wish to remove the edges. so i set the property edgecolor set...

bijna 11 jaar ago | 0 answers | 0

Answered

how o save a part of figure with gui to image

So I found the answer myself. it seems that the export_fig from the file exchange can do this if you give it an axes handle an...

how o save a part of figure with gui to image

So I found the answer myself. it seems that the export_fig from the file exchange can do this if you give it an axes handle an...

bijna 11 jaar ago | 1

| accepted

Question

how o save a part of figure with gui to image

hello all, i have read every post and answer on the subject but nothing solved my problem. I have a figure with a gui. it also...

bijna 11 jaar ago | 1 answer | 0

Question

how to discard NaN vectors from a 3D matrix

Hi, I have a 3D matrix. some of its rows/columns/depth vectors can be all NaN. I wish to creat a new matrix which is the same...

bijna 11 jaar ago | 0 answers | 0

Question

how to use format spec in fprintf properly

Hello, I have read the help documentation but somtehing doesnt work as expected. say i have a variable x=3.14 and i...

bijna 11 jaar ago | 1 answer | 0

Question

how do light and material reflection constants work in matlab ?

Hi, I am creating a 3D scene with lighting in matlab. i am defining the maerial using material([ka kd ks n]) where k...

ongeveer 11 jaar ago | 0 answers | 0

Question

How to set field of view angle in perspective projection ?

Hi, Is there a way to set the field of view angle in perspective projection ? (i wish to controll the distortion). I axplo...

ongeveer 11 jaar ago | 0 answers | 0

Answered

why do the markers change size after several key press

so I solved the problem by adding this line of code in the main function set(gcf, 'Renderer', 'zbuffer'); I guess there ...

why do the markers change size after several key press

so I solved the problem by adding this line of code in the main function set(gcf, 'Renderer', 'zbuffer'); I guess there ...

ongeveer 11 jaar ago | 0

| accepted

Question

how to create a drawing callback ?

Hi, Im used to working in C and opengl and i am trying to maintain the same workflow. I wrote the code attached at the botto...

ongeveer 11 jaar ago | 0 answers | 1

Question

whats the syntax of i++ in matlab

I have been looking for this and surprisingly couldnt find an answer is there a shortcut statement that would do what C code ...

ongeveer 11 jaar ago | 1 answer | 0

Question

how to rotate a graphic object using a button press

Hi, im trying to rotate a graphic object using a button press but i can understand what im doing wrong. the code is running b...

ongeveer 11 jaar ago | 0 answers | 0

Question

opengl functions in matlab

Hi, I am TAing a course in computer graphics and currently we are using opengl with c to implement the subject principles. we...

meer dan 11 jaar ago | 3 answers | 1

Question

how to find a vector in a known set of possibilities

Hi, say i have a vector v that can be one of previously known 11 possibilities. is there a simple way to know which possibil...

meer dan 11 jaar ago | 1 answer | 0

Question

how to find indices on a boundary?

Hi, I have a polygon defined by its vertices in 2D (i.e a nX2 matrix). I have a pixel image of size MxM. i wish to label all...

meer dan 11 jaar ago | 4 answers | 1

Question

how to find overlapping intervals?

Hi, is there a function or an efficient way to find the overlap between two intervals represented in vectors. for example for...

meer dan 11 jaar ago | 4 answers | 0

Question

how to set default input language in matlab

Hi, this is more of an interface problem. I have 2 input languages installed on my win 7. every time i start matlab i have ...

meer dan 11 jaar ago | 1 answer | 1

Question

How to convert an nXn matrix into n/numXn/num matrix containing the sum of elelments

Hi, suppose I have a matrix M which is nXn size. i wish to turn this matrix into a smaller matrix M1 which is n/numXn/num size....

meer dan 11 jaar ago | 1 answer | 0

Question

how to filter points which are on a straight line

hi, im looking for a function that will allow me to filter all points that are on a straight line and keep the points that repr...

meer dan 11 jaar ago | 2 answers | 0

Question

how to transfrer data in guide ?

Hi, I have built a UI in guide. I have created an "edit text" function. I wish to allow the user to insert a numeric value a...

bijna 12 jaar ago | 1 answer | 0

Question

data transfer in guide

Hi , I have built a user interface in guide. i wish to allow the user to enter numeric values and set them to some variables...

bijna 12 jaar ago | 0 answers | 0

Question

how to convert a vector to a number

hi lets say i have a vector [1,1,1] is there a function that can convert this to the number 111 ?

bijna 12 jaar ago | 1 answer | 0

Question

Selecting data points in 3D space

Hi, I am plotting data points in 3d space. what i wish to do is allow a user to select a volume of interest. is there a fu...

bijna 12 jaar ago | 1 answer | 1

Answered

Reading a 3d .RAW voxel file

OK so i figured out 2 ways to do this, they both seem to work (the files are always symetric to all sides) 1. fi...

Reading a 3d .RAW voxel file

OK so i figured out 2 ways to do this, they both seem to work (the files are always symetric to all sides) 1. fi...

bijna 12 jaar ago | 1

Question

how to Drawing 3d Voxel data

I want to draw voxels in 3d space (I have them stored in a 3d matrix). i used patch to do this (or voxel function from file exch...

bijna 12 jaar ago | 4 answers | 1

Answered

Reading a 3d .RAW voxel file

hmmm... thats a great question. I dont really know. is there a way/test to run that i can figure out the format? do you know w...

Reading a 3d .RAW voxel file

hmmm... thats a great question. I dont really know. is there a way/test to run that i can figure out the format? do you know w...

bijna 12 jaar ago | 0

Question

Reading a 3d .RAW voxel file

Hi, I have a .RAW file that represent a 3d volume using pixels (its basically a 3d matrix containing 1 or 0 wherever there is o...

bijna 12 jaar ago | 4 answers | 0

Question

working with an array pointer in a recursive function

H, I want to create a recursive function that gets an image matrix and turns it into a quadtree array. so i figured the best ...

bijna 12 jaar ago | 1 answer | 1

Question

Is there a shorter/smarter way to do this code

Hi, I am trying to creat a matrix of all possible coordinates given 2 coordinate vectors. my code is attached below. I know ...

ongeveer 12 jaar ago | 2 answers | 0

Question

finding a region of interest

Hi, I have an grayscale image matrix (basicly a 0,1 matrix). I am "drawing" a binary image using rectangle(). ( using a for loo...

ongeveer 12 jaar ago | 1 answer | 0

Answered

creating a matrix that contains a struct

Thank you for your answer but A was just an example of a more general need. say i want to creat a matrix thats 3Xn having a 1X...

creating a matrix that contains a struct

Thank you for your answer but A was just an example of a more general need. say i want to creat a matrix thats 3Xn having a 1X...

ongeveer 12 jaar ago | 0