Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Removing Part of A String
%% s='7646 89:89'; d=textscan(s,'%f*'); d=d{1};

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
simulink block
Drag the Signal Specification block, drop it on the signal line, double click the block and put proper parameters through the di...

plus de 14 ans il y a | 0

Réponse apportée
Quicky. re 'whos' and workspace.
x=evalin('base','whos')

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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(...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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,'...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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 =...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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} ??...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 2

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
Assigning values from an earlier function
Not sure if it is this: N=4; Q=5; function1(N,Q)

plus de 14 ans il y a | 0

Charger plus