Answered
speeding up a gaussian fitting....
I don't have time to work this in detail now, but here are my thoughts: 1. One way to speed the optimization would be to cal...

11 years ago | 0

| accepted

Answered
How can I add multiple charts in excel with activex
Here's how you can get the linear fit parameters (in Excel) without reading text strings from the trendline labels: K>> V =...

11 years ago | 1

| accepted

Answered
Get subpixel resolution images of a high resolution image
Here's what I would do. Assume |img| is your image. kernel = ones(N,N)/N^2;%Try N = 2, 3, or 4 all_imgs = conv2(img, ke...

11 years ago | 0

Answered
Custom Classes in Standalone Applications?
What's MRC? Perhaps you mean MCR? I've compiled some large GUIs that use a variety of my custom classes. My custom classes ...

11 years ago | 0

Answered
Experiences with release 2012b
I've done my share of complaining, so here are a few things I do like: 1. The new "Go to" dialog is great. I used to use th...

11 years ago | 1

Answered
Experiences with release 2012b
My biggest gripe with the ribbon interface is the enormous amount of screen space it wastes. But the ability to hide it and put...

11 years ago | 7

Answered
Error message with xlswrite after migrating to Windows 7
A couple thoughts: 1. I think the problem is you have not specified a path for your filename. My guess is that Excel is try...

11 years ago | 0

Answered
Read certain range of csv file
There are several ways to do this: 1. Using csvread: data = csvread('file.csv',251,0,'A252..D5352'); 2. Using dlm...

11 years ago | 4

| accepted

Answered
Retrieve a specific folder in outlook
You need to be aware of two things: 1. olFolderInbox should be the integer 6. 2. Indexing into VBA collections such as F...

11 years ago | 2

| accepted

Answered
Help with class methods please
I think per isakson's answer is a bit simplistic. You should probably read up on the difference between Handle classes and Valu...

12 years ago | 0

Answered
Embed external files in published files
I don't know a lot about Matlab's built-in publishing capabilities, but I'd be surprised if what you are looking for is possible...

12 years ago | 0

| accepted

Answered
Plotting a function of 3 variables ?
See the documentation for scatter3. <http://www.mathworks.com/help/techdoc/ref/scatter3.html>) The last input argument lets you...

12 years ago | 0

Answered
spherical aberration and Chromatic aberration
The following code lets you simulate the PSF associated with spherical aberration (as well as diffraction). You need to specify...

12 years ago | 6

| accepted

Answered
xlsread error
I would try using the Excel COM interface directly to see where Excel is struggling. It's interesting that it seems to be faili...

12 years ago | 1

Answered
Read .mat file in android?
Here's another possibility: when saving the MAT file, use the -v7.3 option. Then the MAT file is actually an HDF5 file. You c...

12 years ago | 0

Answered
OOP: matlab class as a property of another class
I think the following should work for setting this property from the Constructor function. The following assumes that you have ...

12 years ago | 0

| accepted

Answered
Simple data extration from notepad
Here's an approach I would try: 1. Use csvread() to read in only the first two columns, the dates and times. 2. Use the da...

12 years ago | 0

| accepted

Answered
program skills about Microsoft Excel, Word and so on
I'm assuming that by "moving around", you're looking to use Matlab to control which cells are selected. Something like the foll...

12 years ago | 1

| accepted

Answered
Creating errorbars in excel
You're on the right track. Here's how to set all of the error bars to 5: [xlY, xlBoth, xlFixedValue] = deal(1); eC.Seri...

12 years ago | 1

| accepted

Answered
word automation - adding / editing tables from matlab
I believe Columns is a Collection and that you need to do the following to access individual columns: newtable.Columns.Item...

12 years ago | 0

| accepted

Answered
Print Figure to Word Document with Current Figure Size
I print figures to Word in a different way. First print the figure to a temporary file using something like temp_fname = [...

12 years ago | 0

| accepted

Answered
Could you help me with FUNCTION syntax
I'm not entirely sure what you want this function to do. How about something like this? From the Matlab command prompt: x...

12 years ago | 1

Answered
Could you help me with FUNCTION syntax
First you need to give the function a name. Here I've called it my_function() and you should save it as my_function.m somewhere...

12 years ago | 1

Answered
Why use x=load('myFile.mat')?
I think it has more to do with code readability. If you use the latter form you create variables in the workspace in a manner i...

12 years ago | 0

Answered
Outputting Data in Excel
I think maybe you're missing the commas in fprintf(fid,'%5.5f, %5.5f, %4.0f\n',soln); Excel is viewing a CSV file as a c...

12 years ago | 0

Answered
image recognition
Look at the help for rgb2gray if you have the Image Processing Toolbox. You can use this function and then normalize as you see...

12 years ago | 0

Answered
Matlab 2011b 64bit. Running and instance in 32 bit mode.
You can install and use both 32- and 64-bit versions of Matlab R2011b on Windows 7 x64. You have to do a full installation of e...

12 years ago | 0

Answered
All I want to do (initially) is read an Excel or csv file
Something like the following should work: %Prompt user for filename [fname, pname] = uigetfile('*.csv'); ...

12 years ago | 1

| accepted

Answered
beyer matrix
I don't see anything wrong with your code, but I do wonder about your statement that you are "getting black images" with R, G, a...

13 years ago | 0

Answered
Using handle graphics for more global variables
handles is a structure that you can modify, as Matt points out above. His variable G is the handles structure that you're likel...

13 years ago | 0

Load more