Answered
dynamically change data at uitable
Will this help? h=uitable; set(h,'Data',rand(3)); set(h,'Data',rand(5));

15 years ago | 0

Answered
How do I add refreshable text label to my plot?
set(h,'String','this is new text')

15 years ago | 1

Answered
Converting a CSV into a XLS through MatLab
Why bother? Open the .csv file in Excel and save it as .xls.

15 years ago | 0

Answered
the problem of scrollbar
I understand that you want to have the effect that when you move the scroll bar, you want the buttons in the panel move up and d...

15 years ago | 0

| accepted

Answered
variable names
To construct your file name: for i=1:5 FileName=sprintf('A_P%d_pitchAmplitude',i); disp(FileName); end

15 years ago | 0

Answered
Just a line Visual Basic to Matlab
I don't think you need the "call" word here. You may need to add single quote if "Components" is the name of the property, such ...

15 years ago | 0

Answered
Plotting matrix columns
Example like this? a=[1:10;sin(1:10);cos(1:10)]'; subplot(2,1,1);plot(a(:,1),a(:,2)); subplot(2,1,2);plot(a(:,1),a(:,...

15 years ago | 1

Answered
algorithm implementation
I don't think you should use the "sort" function. I just made a simple example. The resulting matrix "d" or "d2" is what you wa...

15 years ago | 0

| accepted

Answered
Using fprintf for .txt file
In your script, you can open the file but I don't know how to close it. edit('Original.txt'); system('notepad Original.t...

15 years ago | 0

Answered
Using fprintf for .txt file
It sounds like a tricky problem. I once had an experience that an EOF (end of file) character makes or breaks my tool chain. ...

15 years ago | 0

Answered
Using fprintf for .txt file
did you close the file like fclose(FID)?

15 years ago | 0

Answered
Initialization block executes unexpectedly and frequently
So you have a masked subsystem block. What do you mean when you say "with a lengthly initialization block"? Every block coul...

15 years ago | 0

Answered
Hyperlink to a pdf file within a Simulink model
the "open" command can open .pdf file. You can add an empty subsystem block to your model. Add the following line to its "OpenF...

15 years ago | 0

Answered
How to keep same time range when sending data form Simulink to Matlab?
I suspect you are viewing partial of your curve in Simulink scope. See this post: <http://www.mathworks.com/matlabcentral/answe...

15 years ago | 0

| accepted

Answered
read headerlines from a text file
File =['data3.txt']; fid = fopen(File,'rt'); tmp = textscan(fid, repmat('%s',1,9), 1, 'headerlines',1); meta = tmp{1}...

15 years ago | 0

| accepted

Answered
read headerlines from a text file
What do you mean "that does not work". Type this: [tmp{:}]'

15 years ago | 0

Answered
Clearing everything except variables
save; clear all; load;

15 years ago | 1

Answered
How to add spaces in front of numbers to make their length a constant value
a=[36.897, 1369.4587 0.3, 2.5 1, 2 25.8,3.125]; b=sprintf('%6g%10.8g\n',a') You might need to adjust the field ...

15 years ago | 0

Answered
How to add spaces in front of numbers to make their length a constant value
a=[36.897, 1369.4587 0.3, 2.5 1, 2 25.8,3.125]; b=num2str(a); b(:,8:12)=[]

15 years ago | 0

Answered
Publish: encoding problem
try unicode2native, native2unicode?

15 years ago | 0

Answered
need the code for crossword solver
You mean the recent Matlab contest? The wining entries are all there, free of charge.

15 years ago | 1

Answered
Deploytool
It requires the "MATLAB Compiler" toolbox.

15 years ago | 1

Answered
How to write a matrix into a txt file so that all variables in a columns have exactly the same starting character and length?
What do you mean? What exact format do you want to achieve? Please read through the document of sprintf formatting. I think it s...

15 years ago | 0

Answered
How to write a matrix into a txt file so that all variables in a columns have exactly the same starting character and length?
use sprintf formating, such as a=rand(5,1); sprintf('%20.2f\n',a(:)); doc sprintf It also applies to fprintf.

15 years ago | 0

| accepted

Answered
Batch Files and Matlab: Sequential execution and "start \wait"
Do not use the DOS command "start". It enables a user to start a separate window in Windows from the Windows command line. You j...

15 years ago | 0

Answered
Change file extension from .dat to .csv
help movefile help copyfile or !ren *.dat *.csv

15 years ago | 0

| accepted

Answered
Scope time not shown to full simlation
Click the binocular icon to automatically adjust axle scale. Click the "Parameters" icon, click the "Data History" tab, chang...

15 years ago | 4

| accepted

Answered
Triggered subsystems at time t=0
Would a function-call generator block solve your problem? If you have a pulse generator with a periodic time of 4s and your ...

15 years ago | 0

Answered
Update Path Externally
edit pathdef.m

15 years ago | 1

Question


save workspace to .m file feature
Any news whether the "save workspace to .m file" feature is available in 2011a? I didn't find it from what I read so far. It ...

15 years ago | 1 answer | 0

1

answer

Load more