Answered
Display Percentages in uitable
a=100*rand(100,1); b=strcat(num2str(a),'%'); c=cellstr(b); h=uitable('Data',c);

15 years ago | 2

Answered
Help to resolve error
In your Simulink model, click menu Simulation>Configuration Parameters ... then select the "Solver" in the left column, you will...

15 years ago | 2

Answered
Use of regress function in Matlab version 7.11.0 R2010b
I think function regress() is in the Statistics Toolbox. By any change your new version of the MATLAB software suite no longer h...

15 years ago | 1

Answered
Simulink Scope Viewer Blanks at Simulation End
By default, the Floating Scope has a 5000 data point limit. Does the snip contain about 5000 data points? You can change this by...

15 years ago | 0

Answered
changeble patern on strfind in embedded matlab function or stateflow
TRUE when there is one and only one exact number of consecutive values greater than 4. correct=length(strfind((x')>4,ones(1,n...

15 years ago | 0

Answered
Pass text from an edit text to a lisbox
a={'B7-F9','B8-H9'}; b=regexp(a,'-','split'); strcmp(b{1},'C3') strcmp(b{2},'C3')

15 years ago | 0

Answered
Increment file name by adding numbers in a loop
BaseName='MyDataFile_'; for k=1:10 FileName=[BaseName,num2str(k)] end

15 years ago | 8

Answered
Error in Reading and Writing a text file
Since you are reading and writing the same file, it is surprise to hear that 'r' (read only) works but 'r+' (read and write but ...

15 years ago | 1

Answered
Pass text from an edit text to a lisbox
You will need to read the Edit text string and process it and then write it to the Listbox. figure(1) h1=uicontrol('styl...

15 years ago | 0

| accepted

Answered
set simulink time step
I guess a short answer to your question is YES. Since you already know how to use ode45(odefun,tspan,y0) with tspan=0:0.1:1, you...

15 years ago | 0

Answered
Repeat in counter
Well, you specified to write to A1:A2 for example, which is two cells. Try sprintf('A%i:A%i',count,count)

15 years ago | 0

| accepted

Answered
changeble patern on strfind in embedded matlab function or stateflow
Have a second input to your EML, say n, feed a constant block with value of 5, 6, 7, etc, or this input could be a varying signa...

15 years ago | 1

| accepted

Answered
set simulink time step
Yes, certainly you can! Why don't you try it and see the results. Use the MATLAB supplied "f14" model as an example, you can sp...

15 years ago | 2

Answered
Pattern matching problem
Something like this. BTW, I have to modify your video file name to find a match. VideoFiles={'SHC_LL_S1_0008_V5.5983338494....

15 years ago | 2

| accepted

Answered
Simulation of more than one subsystem at different simulation times
You can put your second part in an Enabled Subsystem block, or a triggered subsystem block.

15 years ago | 0

Answered
Dataset intersection
LargeStock={'a',0.1;'b',0.2;'c',0.3;'d',0.4;'e',0.5}; MyStock={'b','d'}; Index=ismember(LargeStock(:,1),MyStock); ...

15 years ago | 0

| accepted

Answered
please help strfind in stateflow NOT YET SOLVED
How did you make your input to Simulink as x= [5 5 5 5 5 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3]? The error message indicates that x is a...

15 years ago | 1

| accepted

Answered
matalab help
See <http://www.mathworks.com/image-video-processing/video-processing.html this link>

15 years ago | 0

Answered
Vibration of plate and disk
The error message says it all. Bad value for axes property: 'ZLim' Values must be increasing and non-NaN. The error is unlikely...

15 years ago | 0

| accepted

Answered
How to display selected row on table?
Let's say you have a 100x2 matrix, you want to search the maximum on first column and then display a few rows around the maximum...

15 years ago | 0

Answered
convert strings back to variable names?
In this case, you need to use eval() to get its value. a=1; VarName={'a','b','c'}; eval(VarName{1}) Use ismember() and w...

15 years ago | 4

| accepted

Answered
importing and read data file
From the code, it is looking for 600 MATLAB .MAT files under the folder D:\IRData\Folder\IRDataFileName\. The files are named as...

15 years ago | 0

| accepted

Answered
Read string and data (double matrix) of uknown size from file "efficiently"
Try importdata(). It might work for you depending on your MATLAB version. >> a=importdata('test.csv') a = ...

15 years ago | 1

| accepted

Answered
folder specification using fullfile
Well, use fullfile() again. img2=imread(fullfile(f,'Desert.jpt'));

15 years ago | 0

| accepted

Answered
Date conversion program error
In your code, "A" is a double array, "hour" is a char array. If you change A(i)=hour to B{i}=hour, it will work. But it's better...

15 years ago | 0

Answered
combine multiple text files into one text file
In DOS, I used to use this all the time. copy 1.txt+2.txt+3.txt MyBigFat.txt In MATLAB, you can use system('copy 1...

15 years ago | 3

| accepted

Answered
Making structure arrays programmtically.
Yes, the structure array would be perfect for your need. Based on your sample data, you can do. Dayofmonth = {'Day1'; 'Day2'}...

15 years ago | 0

Answered
GoTo and From visibility
The "Goto Tag Visibility" block can help you to do that. But if you have lots of global Goto block, my best bet is to save your ...

15 years ago | 2

Answered
mark varible
You mean highlight the variable names in M-editor. It should be enabled by default. 1. Select File > Preferences > Colors > P...

15 years ago | 0

Answered
Supress code generation of certain sections in a model
For case 1, you can group those blocks into a Subsystem. You can generate code for just that Subsystem block, not for the whole ...

15 years ago | 0

Load more