Réponse apportée
How can i write to a particular line in a csv file
If you check what a CSV file looks like you'd understand what you need to do. As a CSV is just a text file with data that has a...

environ 12 ans il y a | 0

Réponse apportée
How can I enhance the image resolution?
Your question seems a bit confusing or misguided. You are saying you have 2505 by 2713 image file (lets just say *.bmp, *.jpg, ...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
For-loop: create new name and extract data
How do you get 20 values? as dNPP(n:n) is just dNPP(n). or does this continue to dNPP(20:20)? Also I would way this isn't ...

environ 12 ans il y a | 0

Réponse apportée
How to input points and numbers into GUI
Check out the tutorial for GUIDE <http://www.mathworks.com/discovery/matlab-gui.html> There are several demos/simple templates e...

environ 12 ans il y a | 0

Réponse apportée
Subtract data from two columns and show result in 3rd column
Read in the data using xlsread() and write it with xlswrite A = xlsread(____); A(:,3) = A(:,1)-A(:,2); xlswrite(____)

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to Run a .fig file separately without using of it's .m file
I don't understand what you mean by running the fig by itself without the m file as the fig contains the UI graphics (and some h...

environ 12 ans il y a | 0

Réponse apportée
surf() plots weird black lines
If you rotate the surf image does the lines disappear? I was able to run what you have in the same 8.2.0.701 (R2013b) (64 bit) ...

environ 12 ans il y a | 0

Réponse apportée
Eval on multi-line strings - no return value?
to expand it a bit more. what is going on with your result = eval(string) is exactly how it is written. you're setting ever...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
how to write for loop with two variables
make an array called index = 3:-1:1; for j = 1:3 m=index(j); imagesc(images{m}, 'XData', [fid1(j,1) (s...

environ 12 ans il y a | 1

Réponse apportée
how to number selections in listbox?
In your latest comment why not in the"add new layer" button callback get the number of entries already in the list box NumE...

environ 12 ans il y a | 0

Réponse apportée
How do i plot the 3d profiles graph located below in matlab.
This should get you close to where you need to go [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
Displaying data in a printable matlab table
Use dlmwrite() to write the table data to a textfile or xlswrite() into excel.

environ 12 ans il y a | 0

Réponse apportée
matching texts in two cell arrays
you can do this shortcellarray = {'Michael' 'John' 'Eric'}; longcellarray = {'Lisa Ann' 'Michael Adams' 'Art Vara' ...

environ 12 ans il y a | 0

Réponse apportée
How to plot a number of points whose coordinates are given as Input by the user in a GUI Table?
You'll have to set the parameter for the uitable to be able to be editable. <http://www.mathworks.com/help/matlab/ref/uitablepr...

environ 12 ans il y a | 0

Réponse apportée
OpeningFcn with GUI NOT created by GUIDE
Do you need to? whatever you're using to create the GUI (not with GUIDE) is the OpeningFcn portion.

environ 12 ans il y a | 1

Réponse apportée
Output from programmatic GUI
If i understand what you're attempting to do (get some value that is calculated within a pushbutton callback into the main gui)....

environ 12 ans il y a | 0

| A accepté

Réponse apportée
load file and saving in other format (image files)
I would use imwrite(). I am not familiar with savesas() perhaps you're using saveas()? with imwrite you can set what type of...

environ 12 ans il y a | 0

Réponse apportée
square image size whitout changing in original image shape
If you're looking to pad the columns as there are enough rows to get youre 256x256 then. Oimage = imread(____); %your origi...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Continuously Update a GUIDE Object Based on Time
you put the correct item in your tag. you can use the timer functionality inside the GUI.

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Why can't I get matlab to do this when mathematica can do it easily
What is happening is you're not getting the double loop through k1 for EOM2. If you look at the Mathematica code: EOM1[x_]...

environ 12 ans il y a | 2

Réponse apportée
plotting 3 lines in same axes (same figure) with different colors
if you check the documentation for plot() it gives good examples of what you can do ids=[1;2;3;4;5;6;7;8;9;10]; dx=[0.1...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
how to optimize for loops and while loops in m scripts ?
It mostly depends on what you are trying to do when working with arrays or cells. There are matlab commands which can reduce th...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Only first column variable gets read when generating function, Why.
Cursory look at the code shows no problems but it maybe how you are calling the function. How are you running the function? ...

environ 12 ans il y a | 0

Réponse apportée
[GUI]How to set format for figure title
there is good documentation here <http://www.mathworks.com/help/matlab/ref/title.html> which will give you all the parameters yo...

environ 12 ans il y a | 0

Réponse apportée
How can I avoid having to press 'Enter' (or any keyboard key) to return text in an edit box?
there is an extensive thread here <http://www.mathworks.com/matlabcentral/answers/8921-pull-string-out-of-edit-text-without-user...

environ 12 ans il y a | 0

Réponse apportée
Calling Additional Functions in GUI
Not sure what is going on since i can't reproduce it not updating. Here is a quick test i did using a few edit boxes and pushbu...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
Extract x,y data from plot
How many points define the cylinder? do you actually have points in the plane or is it just filled in visually by matlab? Is t...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Saving figures in matlab
if there a specific format that you're looking to save to? you can use the <http://www.mathworks.com/help/matlab/ref/savefig.ht...

environ 12 ans il y a | 0

Réponse apportée
Customize Wheel Scroll fxn to work within axes in figure?
i did a quick test script to show you what is possible. h=figure p1=subplot(2,1,1),plot(rand(10)) p2=subplot(2,1,2),p...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Repeating matrix multiplication linear system
to store each iteration of t. e = 2000; l = 100; a = 25; x = [e; l; a]; for t = 0:50 x(:,t+2) = A*x(:,t+...

environ 12 ans il y a | 0

Charger plus