Answered
using the surf function on curved surface
What do you mean? Is the hold command all you need? [x,y,z]=cylinder; cylinder; hold on; surf(x/2,y/2,z*2);

15 years ago | 0

| accepted

Answered
Independence Day weekend puzzler
I like this Golf challenge. Inspired by Paulo's entry. num2str(str2num(sprintf('%d',x))+1)-'0' is shorter.

15 years ago | 3

| accepted

Answered
Detecting a string and getting the entire sentence
Astr='My name is X. I am working on Matlab. I work on it everyday. I do many mathematical analysis with matlab. Everyone shoul...

15 years ago | 2

| accepted

Answered
Two state markov chain realization
You've asked the same question multiple times. Sounds like you need to go back to your textbook to learn what is state transitio...

15 years ago | 0

Answered
using subplot
Then it's not subplot. Just use plot() with the hold on command. t=1:0.1:10; plot(t,0.1*t); hold on; plot(t,sin(t)...

15 years ago | 0

Answered
Compiling frames to get the video
help movie help avifile help getframe

15 years ago | 0

Answered
Creating legend in loop for multiple figures
I will just provide this function to see if you can utilize it to help you complete your task. Save the following code in to a p...

15 years ago | 0

Answered
Creating legend in loop for multiple figures
IDs = {'142T1','169T1','173T1','136T2','148T2','92T3','183T3','198T3'}; Treats=regexp(IDs,'T.+','match'); Treats=cellfun(@...

15 years ago | 0

Answered
Textscan - reading data into Cell Array
Depending on your MATLAB version, you may try importdata(). In r2007b, it worked out well. >> a=importdata('test.txt') a = ...

15 years ago | 0

Answered
Textscan - reading data into Cell Array
To read a line, use Line=fgetl(fid). textscan works on string Line too.

15 years ago | 0

Answered
Funny situations while helping others on MATLAB Answers
Here is one, rather annoying than funny. Someone never accepts an answer but keep asking questions. I am pretty sure many of the...

15 years ago | 2

Answered
Set pop-up mask content from file
Use get() and set() command. Drag and drop a Subsystem block to a model, type the following line in the command window. ...

15 years ago | 0

Answered
create output structure within a function
unless you mean this: output = struct('pathstr','name','ext','baseline', 'postbaseline',{'postbaseline_baseline_corrected_0...

15 years ago | 0

| accepted

Answered
create output structure within a function
Do you mean output=struct('pathstr',name,'ext',baseline,...)? check the syntax of struct() again.

15 years ago | 0

Answered
Error using save Unable to write file datafiles/f01.mat: No such file or directory.
'datafiles/f01.mat' isn't the full path of the file, is it? If you mean to save it in the current folder, try. save(fullfil...

15 years ago | 2

| accepted

Answered
how to read data into matlab
Maybe you can read it in as strings and then do whatever processing you want to. >> [a,b]=textread('Resp_R2_T6_c1.dat','%s%...

15 years ago | 0

Answered
Can I stop MATLAB when it's being busy?
I usually press ctrl+c or ctrl+d. I don't know how I get the idea of pressing ctrl+d but I remembered it worked sometimes. Here...

15 years ago | 1

Answered
Problem with Cell Arrays in GUIDE
I must say I didn't try to understand all of your discussion. From all of your three questions, may I suggest a different approa...

15 years ago | 1

Answered
Problem with Cell Arrays in GUIDE
Should the line inside the for-loop be this ? Z(i)={I}; And questions: what is the typical value of get(handles.popupmenu1,'...

15 years ago | 0

Answered
Subplot after opening a saved figure
Or, if your previous figure is saved in a .fig file. h=open('test.fig'); handles=findobj(h,'Type','axes'); You'll get...

15 years ago | 1

Answered
create advanced gui using matlab
GUIDE? type guide in MATLAB command window, and watch <http://www.mathworks.com/support/2007b/matlab/7.5/demos/CreatingaGUIwith...

15 years ago | 0

Answered
how to find argument or angle of a complex number in matlab?
>> angle([1+i,1-i,i,-i]) ans = 0.7854 -0.7854 1.5708 -1.5708 Do you have a variable called "angle" of your o...

15 years ago | 1

Answered
MATLAB Central Answers website problem?
Talking about search, I found the search capability of the website is under par. For example, right now there are more than 9000...

15 years ago | 1

Answered
How to Plot Multiple variables ?(not multi-plot)
The strangest way of using plot() I have even seen! Even plot(eval('t_1')) is better in my opinion. With that said, assume y...

15 years ago | 0

Answered
Automatically change subfolders within a directory
help cd help dir

15 years ago | 0

Answered
Pricing a bond with different YTM (at cross sectional level)
You know, MATLAB has <http://www.mathworks.com/products/finance/?s_cid=global_nav Financial Toolbox>

15 years ago | 0

Answered
Accessing data from Radio Buttons
Bill, let's work out this "button group" issue first. Your code in previous post is overly complicated. Start with a new GUI,...

15 years ago | 3

Answered
Save simulation data in TargetLink Main Dialog with use of API commands
TargetLink uses .mat format to save the data. But it does put all the data in a structure and add some annotations. So you can't...

15 years ago | 0

Answered
How to remove whitespace around subplot figures?
<http://www.mathworks.com/matlabcentral/answers/466-removing-white-space-in-emf-plots this post> might help you.

15 years ago | 0

| accepted

Answered
Cannot set handles in Radio Button Group
Are you constructing your GUI using GUIDE or manually writing .m code? When you put 4 radio buttons in a panel (button group), t...

15 years ago | 0

Load more