Answered
Help with multiple plot at same figure
hold on

15 years ago | 0

| accepted

Answered
Saving variables in workspace to a .txt file along with variable names
The commands below give you some ideas: doc fprintf datestr(now)

15 years ago | 1

Answered
terminating ALL m-scripts
use error help error

15 years ago | 0

Answered
how to import an excel sheet into MATLAB
help xlsread help sort

15 years ago | 0

Answered
Clearing data
I "think" you could replace the line: data4(:,:,i)=cell2mat(temp) with data4(:,:,(1:length(temp))=cell2mat(temp) ...

15 years ago | 0

| accepted

Answered
How to Compare strings
Have you tried: strcmp to convert to numbers str2num

15 years ago | 0

Answered
question concerning subfunction interaction between GUIs
The variable handles in your function txtConverter is undefined. You need to pass in (or get from findobj or similar) the ...

15 years ago | 0

| accepted

Answered
Matlab 2007
Thats whats supposed to happen, see <http://www.mathworks.com/help/techdoc/matlab_prog/f7-41453.html mathworks help> to understa...

15 years ago | 0

Answered
Get one line from file
or you could use fid = fopen ( 'file.txt' ) if fid ~= -1 for i=1:NUMBER_OF_LINES_TO_SKIP fgetl ( fid ); ...

15 years ago | 0

Answered
rounding errors in for loop
I got around this type of problem by creating the following function which rounds numbers to user defined number of decimal plac...

15 years ago | 0

Answered
Nested for-loops too slow
Pulling out the i, j and k elements only when they changewill speed it up: sum = 0; A = zeros(4,1); for i=1:N A(1) = ...

15 years ago | 0

Answered
How to break FOR-loop if "progressbar" is closed
Below is an example of how to do it using two functions and a dialog which is created where you can interrupt - I'm sure you cou...

15 years ago | 0

Answered
Speed up a "logical matrix multiply"
extracting out the A(ii,:) to the ii loop is slightly faster... tic for ii=1:5 temp=A(ii,:); for jj=1:5 ...

15 years ago | 0

Answered
using waitbar
The best way to get help is to show your code, or at lease a snipit. In this case your probably using the waitbar wrong. Fro...

15 years ago | 1

| accepted

Answered
additional subplots of zoomed-in areas in the matlab figure
You could investigate this from FEX: <http://www.mathworks.com/matlabcentral/fileexchange/5961-magnify magnify>

15 years ago | 0

Answered
Generate a standalone application from GUI figures
A deployed application MUST have either the relevent MCR installed or the same version of Matlab. AFAIK there is no way around t...

15 years ago | 2

| accepted

Answered
How to adapt the number format for text in a graph
or your could use: text(1,1,sprintf('99%% Lower Confidence Limit =%3.2f Million',value/1e6));

15 years ago | 1

| accepted

Answered
Confused: GUI / figure /
you wouldn't want curfig = get(0,'CurrentFigure') to return a handle to your gui created in the 1st line. Why, here is...

15 years ago | 0

Answered
indexing in nested loop
in your first example in each loop a is: 1 2 3 4 5 6 7 8 9 10 11 ... 20 In your second it is: 1 6 11 16 21 26 31 .....

15 years ago | 0

Answered
Standalone application works in MATLAB but not outside
I've never used the deploytool - I still do everything from command line. But having a look at it, have you added your Data....

15 years ago | 0

Answered
Error: File: cftool.m Line: 355 Column: 33 Unexpected MATLAB operator
What version of Matlab do you have? I'm guessing its R2008b or earlier? If I recall thats when the ~ was introduced to rep...

15 years ago | 1

Answered
Location required for mex files?
If you can ensure that the mex file is towards the beginning of the path string it will override the m files, see <http://www.ma...

15 years ago | 0

Answered
Standalone application works in MATLAB but not outside
if your code isn't working that indicates your variable thePath is different when deployed and when not. Try printing...

15 years ago | 3

Answered
wrting a cell array of strings to excel
You could also investigate dlmwrite where you can specify the delimiter for importing into excel.

15 years ago | 0

Answered
matrix result storing problem
it looks like you are overwriting your variable v in your loop. I dont really follow your code in the example above, and not kn...

15 years ago | 0

Answered
loading and saving with eval using sprintf
why dont you just do: fname = fullfile ( directory, filename ) load ( fname ) then use similar at the end for saving: f...

15 years ago | 3

Answered
Grabbing all files in a folder
if you set use the following syntax you can select multiple files: uigetfile('*.m', 'Select Multiple Files', 'MultiSelect', '...

15 years ago | 1

Answered
exporting the variable values in a text file
you could also use either of: xlswrite cvswrite

15 years ago | 1

| accepted

Answered
How to compile code for other Matlab users
Do you want to protect your code from the other user editing? if so you have 2 options 1. Compile using matlab compiler ...

15 years ago | 0

Answered
Transfer HELP Shortcuts to a new MATLAB version
see http://www.mathworks.com/support/solutions/en/data/1-6E5JS3/index.html?product=ML&solution=1-6E5JS3 for copying the s...

15 years ago | 1

Load more