Answered
convert String (cell) table
Would this work for you? Str={'12','12A','12B','12C','13'}; Str=strrep(Str,'A','.1'); Str=strrep(Str,'B','.2'); St...

15 years ago | 0

| accepted

Answered
editing gui text box string
Would this work? for i=1:32 Tag=sprintf('X%02d',i); set(handles.(Tag),'String',num2str(data(i))); end I veri...

15 years ago | 1

Answered
cell array expansion
Maybe one way to explain it is to treat it as the variable output argument. Like, MaxValue=max(1:10); [MaxValue,Index]=m...

15 years ago | 1

Answered
Slider warnings and errors!!!
You can only specify one number, e.g. 50000. For this problem, I think the program GUIDE needs to be improved. A slider is for ...

15 years ago | 0

Answered
problem of getting data from Simulink to Workspace with Matlab Fcn block
Your MATLAB Fcn block is also executed at every simulation step. Your statement assignin('base','Str_Digits',Temp5); over-write ...

15 years ago | 0

| accepted

Answered
Control Break Processing
I have one solution but it still requires a for-loop. raw={'06-Nov-2000' '16-Dec-2000' 0.47 0 '06-Nov-2000' '16-Dec-2000' 0...

15 years ago | 1

| accepted

Answered
Find Time Series Objects with Specific Names
What type of time series data do you have? Does each signal have a time series object? If that is the case, you can use VarNames...

15 years ago | 0

Answered
Plotting Matrix points: 2
B=[30.7805 28.7527 25.7110 23.6832 19.6268 17.5949 14.5547 11.5147 8.4725 5.4313 29.7667 27.7333 ...

15 years ago | 0

Answered
about dlmwrite
DLMWRITE('FILENAME',M,'DLM',R,C) writes matrix M starting at offset row R, and offset column C in the file. But it will complete...

15 years ago | 0

Answered
Retrieving strings from struct variable
Your strings may have different length. Thus, it is better to use cell array of strings. change your line to be: stringVect...

15 years ago | 1

Answered
how front weight in iutable can be changed?
set(h,'FontWeight','Bold');

15 years ago | 0

| accepted

Answered
how front size and width of the row can be changed in uitable?
h=uitable('data',magic(5)); get(h) You can see a list of the properties, you probably can guess what it means. Then use ...

15 years ago | 0

| accepted

Answered
table in GUI --> data to matrix, expandable array
First, create an example table. h=uitable('data',magic(5),'columneditable',true,'RearrangeableColumns','on'); Then, make...

15 years ago | 1

| accepted

Answered
Identifying gaps in time-series data
Okay, I am not trying to steal the answer from Oleg. Here is an example using the approach he suggested. In = {'20110222T1803...

15 years ago | 0

Answered
Reading excel files in a directory
Something like this: for k=1:89 FileName=['R',num2str(k)]; data=xlsread([FileName,'.xlsx']); % do stuff on data ...

15 years ago | 0

| accepted

Answered
signal builder: repeat a signal for n times in one simulation (not to be confused with running in succession)
It sounds like that currently Signal Builder block can't do that. The Repeating Sequence block from Source library can easily do...

15 years ago | 0

Answered
Reading Input Files problem
I have given this advice several times to others. try data=importdata('TempIn.txt') might delight you.

15 years ago | 0

| accepted

Answered
Plotting Matrix points
Not enough information. Your B is 10x2 matrix, not 2x10. Maybe: a=[1:10;1:10]; line(a,B'); Horizontal lines: line(B',ze...

15 years ago | 1

Answered
Varying parameters During a simulation
If you only want to do this with sine wave frequency, you can use a slider gain block and then use a Fcn block, y=sin(2*pi*f*t)....

15 years ago | 0

Answered
Calling MATLAB and running m files from Excel VBA macro
Please refer to <http://www.mathworks.com/help/toolbox/matlabxl/ug/f2-9388.html this example>

15 years ago | 0

Answered
importfile from a gui
The error message says it all. Where is your variable "Vector1"? Put a break point at line "Element=Vector1(i)". Check the value...

15 years ago | 0

Answered
Using 2d INTERPOLATION
You probably mean this at your last line. InterpTS = interp2(ColumnSize,RowSize,... tS,4.5,66)

15 years ago | 0

Answered
How to generate a basic table of answers?
Could do this too. a=magic(5); open('a');

15 years ago | 0

Answered
How to generate a basic table of answers?
h=uitable('data',rand(3,1))

15 years ago | 0

Answered
Problem with looping through Folder finding pattern
value=getfield(files(i),'name') or value=files(i).name

15 years ago | 2

| accepted

Answered
using string in if statement
The following code should work. You can also use isequal(MyName,'Daniel'), strcmp(), strcmpi() etc. MyName='Daniel'; if...

15 years ago | 1

Answered
strfind in stateflow
Type "sf_seqrec" to open the demo model. Or search for "Sequence Recognition Using Mealy and Moore Charts" in doc. You just need...

15 years ago | 0

Answered
Simulink Unit Delay - Unexpected Behavior
A few things to note. 1. The Pulse Generator block outputs 1 for the first 500ns, then 0 for the second 500ns. It's not 0 first...

15 years ago | 0

Answered
Fixed constant number at different time in Simulink
Use the Step block from the Source library, set the initial value to be 1 and final value to be 2.

15 years ago | 0

| accepted

Answered
How to read image in local intranet? THREAD ID: 1-F5HY5R
See example in <http://www.mathworks.com/matlabcentral/answers/11702-how-to-read-image-in-web-browser this post>. It should work...

15 years ago | 0

Load more