Answered
Cell array and cell structure
Hi cwc, Nothing is Weird. According to MATLAB W is a cell array. and ['Oxygen',15.9994] is the first member of the cell array. A...

12 years ago | 1

Answered
Time based function simulink....
Are your output values discrete? I mean 1 and 0 only? In this case you can use a stateflow with two states 'on' and 'off' and a...

12 years ago | 0

Answered
GUI Edit Text Autocomplete?
As far as i see, you should either do it the way Vishal says. Otherwise, You have to use Dynamic Java methods.

12 years ago | 0

Answered
How can I speed-up the ''write, read and save'' of an excel file from matlab?
use ActiveX to write and read instead of xlswrite and xlsread respectively.

12 years ago | 0

| accepted

Answered
Dear All user, please Help me
What you ask is what you get here(WYAIWYG).. Please rephrase question and add more details. Is it about the code or logic or har...

12 years ago | 1

| accepted

Answered
how to check status of any signal for predefined time in simulink?
You can use a scope or make assertion blocks with set dynamic ranges.

12 years ago | 0

Answered
problem of applying im2bw function
I do not know abc of im2bw. But based on my knowledge of digital images, if its an 8 bit bw, image then subtract the image matri...

12 years ago | 0

Answered
How to detect data type of Inport/Outport Signals of SIMULINK model via MATLAB code
to filter out Inports and outports you can use find_sys() and to get their data types, for every inport or outport block use ...

12 years ago | 0

| accepted

Question


Is mlappinstall backward compatible?
1. I found some apps in mlappinstall format at MATLAB File Exchange. I understand that this was introduced recently (2012b or 20...

12 years ago | 1 answer | 1

1

answer

Answered
how to read complicated text file
use textscan with delimiter '|' FileObj=fopen(FileName); CellData=textscan(FileObj, ... '%s %s %s %s %s %s %s %s ...

12 years ago | 0

Answered
Error in exporting values using xlswrite
Do you have MS Excel installed? look at this link please.. http://www.mathworks.in/matlabcentral/answers/21477

12 years ago | 0

Answered
I want to load my workbook into Microsoft Excel activexcontrol (Microsoft Office Spreadsheet 11.0) using GUIDE.
You can do an xlsread and then display the data in t...

12 years ago | 0

Answered
Executable or Matlab App from Simulink+GUI
You would still need mcr (matlab compiler) to share a GUI executable created out with MATLAB GUIde.

12 years ago | 0

Answered
Generate a table in Matlab GUI (matlab 7.0.1)
Insert a uitable in your GUI by name say TableDemo. then read data from xls like you have done, p1 = xlsread('C:\Documents...

12 years ago | 0

Answered
How to create new variables
do you mean to do eval('x=0')?

12 years ago | 0

Answered
How can i pause an engaged PID controller while i am running a simulation? How can i start and reset a subsystem at a given time?
You want to pause the simulation using code? If yes, you can use set_param(bdroot,'SimulationCommand','pause') then ...

12 years ago | 0

Answered
int64 in simulink / stateflow?
Matlab supports int64 whereas Simulink/Stateflow does not. Workaround will be to use two int32 variables. so your expect...

12 years ago | 0

Answered
how to read this file in matlab?
You can read the .tim file using FileObj=fopen(FileName); FileData=textscan(FileObj, ... '%s .....', 'deli...

12 years ago | 0

Answered
Hi, guys, I am trying to create a MATLAB Subrountine, but I faced some problems. My code is not working, and I don't know what is wrong with it.
Did you write your function in command window? Unlike python, MATLAB does not let you write a function in its command window. So...

12 years ago | 0

Answered
In simulink, how to generate a square wave using an external source as frequency?
you can use a normal Pulse generator block in Simulink and use set_param command to set any of the parameters like Amplitude, Pe...

12 years ago | 0

| accepted

Answered
if i give maximum value to the check box means some function will be done , otherwise nothing will be do, how to do?
say you have function1(), and function2(). Checkbox1CallBack() global Firstcallbox_Value; Firstcallbox_Value=g...

12 years ago | 0

Answered
Saving a figure in GUI
get the handle of the figure and do a saveas call. eg: saveas(h,'filename','format') format can be any image format or...

12 years ago | 0

Answered
What's the problem in my loop?
Matlab Matrices do not have indices starting at 0. There is nothing like A(0) in MATLAB (But it is so in C or Python though). T...

12 years ago | 1

Answered
Problem in logging data in simulink
to workspace will work definitely. Check the name you give for the workspace variable(double click to Workspace) and run simulat...

12 years ago | 0

Answered
Problem in function handling using callback functions GUI
Hello, there are three ways to handle this. 1. Place your logic of my_function() inside the Button Call back function as David...

12 years ago | 1

Answered
Hello, I'm looking to have a static text or edit text box change it's value depending on what I put in for the other edit text boxes in a GUI
You can do a Get the value from the first Text Box every time it is edited by using edit Call Back function using RecievedS...

12 years ago | 0

Answered
Can I use Matlab to design a GUI without relying on a toolbox?
You don't need any additional tool boxes. Use GUIDE and you can write your own logics for callback functions. Though, I sho...

12 years ago | 0

Answered
How can convert .mdl to .m
You need not convert to m file, then to p code. For your needs, converting the subsystem to Masked sub system will be enough.

12 years ago | 0

Answered
Using 'disp' function with variables
disp() takes only one argument. To accomplish what you need, do disp(['There is an ice rule violation at: (', num2str(xd), ...

12 years ago | 8

| accepted

Answered
Save matlab output in textfile
Easier way is to use diary function. diary on Print everything on the command window using disp, and let diary take care o...

12 years ago | 1

Load more