Answered
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...

11 years ago | 0

Answered
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, ...

11 years ago | 3

| accepted

Answered
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 ...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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(____)

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

Answered
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) ...

11 years ago | 0

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 1

Answered
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...

11 years ago | 0

Answered
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)...

11 years ago | 2

| accepted

Answered
Displaying data in a printable matlab table
Use dlmwrite() to write the table data to a textfile or xlswrite() into excel.

11 years ago | 0

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

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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.

11 years ago | 1

Answered
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)....

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

| accepted

Answered
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.

11 years ago | 0

| accepted

Answered
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_]...

11 years ago | 2

Answered
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...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

| accepted

Answered
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? ...

11 years ago | 0

Answered
[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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 2

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 1

| accepted

Answered
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+...

11 years ago | 0

Load more