Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 6

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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',[...

plus de 11 ans il y a | 0

Réponse apportée
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'...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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.^...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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?...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 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 ...

plus de 11 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
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 = ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Charger plus