Answered
Howto clip a scatter plot to axes with limits
Reverse the order that you're setting the parameters. [mgx mgy] = meshgrid(-60:60); %some example data scatter(mgx...

11 years ago | 0

Answered
How to remove the tic labels but not the marks?
what you could do is use the set command for the axis. like set(gca,'YTick',[]); %which will get rid of all the markings f...

11 years ago | 6

| accepted

Answered
I want to output the results of the matlab function 'why' in GUI. But i am unable to do so.. I can output numbers or specific text but i cannot output a result of another function when the answer is in the form of a string.
The built in why function does not contain outputs. you can make a modified why called mywhy(n) which all you really need to mo...

11 years ago | 0

| accepted

Answered
How do i select random indicies from an array?
yes, you can perform something like this. Lets say your 10 by 6 array is called A; then to get the random row(s) you can do ...

11 years ago | 1

Answered
How can i plot Electric field graph of Electric dipole?
you can use the function quiver() examples on its use can be found <http://www.mathworks.com/help/matlab/ref/quiver.html>. So i...

11 years ago | 0

| accepted

Answered
graphing -- make figure window larger
you can do something like this figh = figure(1); plot(1:10,1:10) pos = get(figh,'position'); set(figh,'position',[...

11 years ago | 0

Answered
Index out of bounds
From what i see filename is probably a string, so what you're doing is trying to access patientstats('2',1) and patientstats('2'...

11 years ago | 1

Answered
make a picture from excel file with MATLAB
I would start by using the function xlsread() to read in the specified excel file and the range of where the image is create. T...

11 years ago | 0

| accepted

Answered
Trying to plot more than two graphs with two different scales onto a single plot
you can use hold on to keep adding to these plots x = 1:10 %time for i =1:3 y(i,:)=1*x+i; z(i,:)=2*x.^...

11 years ago | 1

| accepted

Answered
Duplicated GUIDE-created GUI not properly updating handles
the original copy did you just saveas the mfile with a new name or did you saveas the .fig with a new name along with the mfile?...

11 years ago | 0

Answered
How do I compare a string with a #single word?
you can try something like this where hiplist is your hipster word dictionary. Then in my loop there you test for hits against ...

11 years ago | 0

Answered
how can i make a surf from 36 points?
since its nicely ordered and evenly spaced then you can reshape Z vector to z = reshape(Z,6,6); along with [x,y]=m...

11 years ago | 0

Question


Nikon camera acquisition and control using matlab?
I just bought a telescope and was wondering has anyone tried and/or have success with using Matlab to acquire data from a Nikon ...

11 years ago | 2 answers | 0

2

answers

Answered
Repeatedly adding subplots to new figure via GUIDE
without coding it into a gui, this uses copyobj. Seeing how this works you can run the first section up until i define figh2 = ...

11 years ago | 0

| accepted

Answered
Understand a question. HELP!
what submatrix means is a subset formed by taking a block of size mxn (in your example 2x2) from the original matrix. so the 2x...

11 years ago | 1

| accepted

Answered
How do I loop this data?
from what i see, without running it, is that in the freedof(i)=[3i-2 3i-1 3i]; it is trying to assign all 3 3i-2 3i-1 3i] into ...

11 years ago | 0

Answered
How do loop this data?
that would be something along the lines of for ind = 6:5:26 figure,plot(X(:,ind:ind+4)); end

11 years ago | 0

Answered
Select an image inside a figure
something like this can be implemented. function interactiveplot() % 4 images hax(1)=subplot(2,2,1);imagesc(r...

11 years ago | 0

| accepted

Answered
selecting image from only one folder
so i'm assuming you're using something like this [file folder]=uigetfile('D:\TA\DR\'); you can put after that to string com...

11 years ago | 0

Answered
I'm using a for loop to create a new random variable X with range [0 1], I want the forloop to ignore values above 1 and iterate untill all the values are in range.
you'd want to use "continue" to skip the iteration. for ind =1:5 if ind==3 continue else disp(ind) e...

11 years ago | 0

Answered
Find Area of Intersecting rectangles
This sounds like a simple math problem. Since you know the width of the vertical (lets call it widthV) and the width of the hor...

11 years ago | 1

Answered
Compare .txt to a string.
you can use the function strcmp(). which will compare two strings. to expand a bit more you can look up the function fgetl...

11 years ago | 0

| accepted

Answered
How to create music sheets on matlab
you might want to check out the stackoverflow submission <http://stackoverflow.com/questions/19954393/sheet-music-using-matlab-g...

11 years ago | 0

Answered
How to add and remove edit boxes dynamically in gui and also how to obtain particular handle of that editbox
well you can get away from tags and directly work with the handle object. for my example here lets say you have a GUIDE gui wit...

11 years ago | 2

| accepted

Answered
Using a main GUI window to open new ones
What you could do is work with panels. i attached an example. I didn't have much time to comment it fully but it boils down to...

11 years ago | 0

Answered
How to selected a variable point on the y-axis?
well there isn't a figure in your question. But a quick assessment would say you have some equation that would be distance = st...

11 years ago | 0

Answered
How is Matlab GUI generated?
I would say the best method to figure out how GUIDE works is to break points in the OpeningFcn() section of your GUIDE GUI. At ...

11 years ago | 0

| accepted

Answered
Parameterize Image Name In Function
So what you can do is strip the extension off of the ImageName string variable. function editing (ImageName) w=imread(Im...

11 years ago | 0

| accepted

Answered
How to fill missing data in timeseries objeject Matlab
you can try this %Generate example examp = [1123423 33;... 1123443 33;... 112346...

11 years ago | 0

| accepted

Answered
ordering a listbox by extension
two ways to accomplish this, stack the extensions as well and use sort/sortrows to order the extensions. with the sorting funct...

11 years ago | 0

Load more