Beantwortet
In 2007b, block paths having more than 1290 characters are not recognized.
I am not sure if such limitation exists, even in R2007a. Let's see if it is something else. I assume you want to open a subs...

fast 15 Jahre vor | 0

Beantwortet
Transfer function vs. gains, differentiator, integrator = different, but I don't know why?
It must be due to the limitation of calculating du/dt. If you are using all the default setting, you'll notice some warning mess...

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 1

Beantwortet
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...

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 0

Beantwortet
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...

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
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(...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

Beantwortet
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...

fast 15 Jahre vor | 0

Beantwortet
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...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
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,'...

fast 15 Jahre vor | 2

| akzeptiert

Beantwortet
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 =...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 0

Beantwortet
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...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 0

Beantwortet
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} ??...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 15 Jahre vor | 1

Beantwortet
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...

fast 15 Jahre vor | 2

Beantwortet
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...

fast 15 Jahre vor | 1

Mehr laden