Answered
Removing Part of A String
%% s='7646 89:89'; d=textscan(s,'%f*'); d=d{1};

14 years ago | 0

| accepted

Answered
simulink block
Drag the Signal Specification block, drop it on the signal line, double click the block and put proper parameters through the di...

14 years ago | 0

Answered
Quicky. re 'whos' and workspace.
x=evalin('base','whos')

14 years ago | 0

| accepted

Answered
A code to draw other codes together
whilte true Code=input('enter code: ','s'); if strcmpi(Code,'quit') break; else try r...

14 years ago | 0

| accepted

Answered
Save GUI as executable file
You have to install the MCR on that machine that doesn't have the MATLAB. The easiest way to do it is to run deploytool. It help...

14 years ago | 1

Answered
Download latest Simulink demo
The demo model vr_octavia_graphs.mdl is for the Simulink 3D Animation Toolbox. <http://www.mathworks.com/help/toolbox/sl3d/f2-35...

14 years ago | 1

| accepted

Answered
questdlg loop
You need to use the while-loop to do that. while ~isequal(ButtonName,'Yes') %include your switch-case code here end

14 years ago | 0

| accepted

Answered
Using Matlab coder for protecting blocks with power ports
To be precise, it's Simulink Coder, not MATLAB Coder. See <http://www.mathworks.com/help/toolbox/simulink/ug/br6xrii.html Protec...

14 years ago | 0

Answered
Expression or statement is incomplete or incorrect
It means 'Expression or statement is incomplete or incorrect'. Did you write 'a=1' with or without the two single quote marks? P...

14 years ago | 0

Answered
Set Column width of Excel through Matlab
Something like this. ExcelApp=actxserver('excel.application'); ExcelApp.Visible=1; NewWorkbook=ExcelApp.Workbooks.O...

14 years ago | 1

| accepted

Answered
saving from for loop
Very close. c(i,:) = a(i,:)./b(1,i) Yes. You did it right pre-allocating.

14 years ago | 1

| accepted

Answered
SIMULINK Time Optimization
In the "Sinks" library, there is a block called "Stop Simulation". You can construct a logic (e.g. compare your output against 1...

14 years ago | 1

| accepted

Answered
Manipolation of cell array and
Do you want to sum the 3rd and 4th column all together or separately? Anyway, it should be similar to this. Out=zeros(size(...

14 years ago | 1

| accepted

Answered
algebraic loop
It sounds like that the algebraic loop should not occur since you have an integrator, unless what you described of your model is...

14 years ago | 0

Answered
matlab file as exe file
Use the MATLAB Compiler Toolbox. <http://www.mathworks.com/products/compiler/?s_cid=global_nav Build standalone executables and ...

14 years ago | 0

Answered
please help
It's a little strange because you are not using "Political" as a variable or function. My guess is that: 1) Your Excel versio...

14 years ago | 0

Answered
Manipolation of Cell Arrays.
%% A={'a','b',1 2 3; 'a','b',3 4 5; 'b','z',3 4 5; 'b','z',4 5 6; 'r','t',5 6 7; 'r','t',6 7 8...

14 years ago | 1

| accepted

Answered
parseing a filename [ex. .xls vs .dat] in order to pick correct menu to follow
filename='xyz.dat'; [pathstr,name,ext]=fileparts(filename); if strcmpi(ext,'.dat') % do something elseif strcmpi(ext,'...

14 years ago | 2

| accepted

Answered
Date Conversion
datenum() >> dates={'2011/11/11 11:11:11:111';'2012/12/12 12:12:12:121'} datenum(dates,'yyyy/mm/dd HH:MM:SS:FFF') dates =...

14 years ago | 0

| accepted

Answered
Stair Plot problem
I guess that is what the way stairs() is designed. To answer your first part of the question, you probably need to do two ste...

14 years ago | 0

Answered
How can I come to know whether a stateflow chart is open from command prompt?
sfclose only closes the opened Stateflow window. It doesn't impact the "save" status of the model at all. So it's safe to run sf...

14 years ago | 0

| accepted

Answered
Using Matlab Function in Simulink
Take the default parameter for the "MATLAB Fcn" block for example, the MATLAB function is "sin" so it get sin(x) as output if th...

14 years ago | 0

| accepted

Answered
Experiments with Matlab by Cleve Moler_rabbit.m file
You probably worked on a MATLAB version earlier than R2009b, which does not support the new feature regarding the use of ~ symbo...

14 years ago | 0

Answered
index exceed matrix dimension error
You have less than 7 cells in your variable m. Do the following to understand the error. >> clear m; m=cell(6,1);m{7} ??...

14 years ago | 0

| accepted

Answered
simulink transfer function with time constant changing during simulation
Assume your input is x and output is y: y=x/(T1*s+1) y*T1*s+y=x y*T1*s=x-y y=(x-y)*(1/s)*(1/T1) 1/s is an integ...

14 years ago | 2

| accepted

Answered
Numerical integration of a vector from limits 0 to Infinity
You can't. Numerical integration is some digital computation based on numerical value. If you want to integrate from 0 to infini...

14 years ago | 1

Answered
from .exe back to m files
I would say it's close to impossible. I would guess that you are wondering if somebody else could decrypt your application. Rest...

14 years ago | 2

Answered
Quick simple question about Simulink
That is the zoom factor. Click an empty spot in the model (but don't double-click), then press key "R" or "V" or "F" to find out...

14 years ago | 1

Answered
Assigning values from an earlier function
Not sure if it is this: N=4; Q=5; function1(N,Q)

14 years ago | 0

Answered
I don't understand the concept of sample time in simulink
In this case, since you are looking at the logged data yout, the sample time is determined by the sample time specification of t...

14 years ago | 2

| accepted

Load more