Respondida
Does MATLAB R2010b have a symbolic math toolbox?
<http://www.mathworks.com/help/toolbox/symbolic/rn/bsllh45-1.html yes>

más de 15 años hace | 0

Respondida
import .txt data
uiimport

más de 15 años hace | 0

Respondida
save plot on axes as a fig file for later use
saveas(handles.axes1,'axes1.fig','fig');

más de 15 años hace | 0

Respondida
local minima
[C,I] = min(y) %C is the value and I is the index x(I) %gives the x value of the local minima

más de 15 años hace | 0

Respondida
Design Iterative PID Tuner using MATLAB and Simulink
%this code saves the PID values that you want (max(Position)<10) %and also max(Position) in the array GoodValues GoodValue...

más de 15 años hace | 0

Respondida
Transfer function
S = v1: [1x1 sym] y: [1x1 sym] There no v2 in the solution so S.v2 gives the error If you want S.v2 syms s ...

más de 15 años hace | 1

| aceptada

Respondida
Initial conditions
Maybe something like the Model Info block but with your initial condition variables, you have to put the same variables inside t...

más de 15 años hace | 0

Respondida
Useful strategy to vote questions and answers
Another question about votes?! why are you and others begging for votes every day?! I may seem to be rude or impolite but c'mon ...

más de 15 años hace | 0

Respondida
Are we voting enough?
Encourage voting?! really?! I fail to understand why people give such importance to votes, we are here mainly to learn with each...

más de 15 años hace | 1

Respondida
Substitute for factors of a variable but not the variable itself
a=sym('1+e^2=1'); if a==sym('1+e^2=1') %or strcmp(char(a),'1+e^2=1') disp('the expressions are equal!!!!') a=sym('1+0=1'...

más de 15 años hace | 0

Respondida
from workspace to m.file
if your m file is just code (not a function) the variables are in the same scope as the worspace, you just need to call them lik...

más de 15 años hace | 0

| aceptada

Respondida
how to make a polar plot line continuous between end and beginning
example hold on t = 0:.01:pi; h1=polar(t,2*t,'--r') t1=t(1); [THETA,RHO] = pol2cart(t1,2*t1) %last t2=t(end); [TH...

más de 15 años hace | 0

Respondida
Vector problem
a=[ 0 0; 1 0 ; 1 0 ; 1 1 ; 1 0] %inputs c=zeros(size(a,1),3); %pre-allocate table c(:,1:2)=a; %put the inputs on the table...

más de 15 años hace | 1

Respondida
How to handle 'NaN' values
errors(isnan(errors))=0

más de 15 años hace | 4

| aceptada

Respondida
How can I use attribute GLOBAL efficiently?
The way you should always work with is: function [y,a]=y(x) if you still want to use global variables you must declare t...

más de 15 años hace | 0

Respondida
How to plot a time-delayed ersion of a signal ??
x=0:0.01:2*pi y=cos(x) plot(x,y) hold on d=2; y=[ones(1,d)*nan y(1:end-d)]; plot(x,y,'r') legend('signal'...

más de 15 años hace | 1

| aceptada

Respondida
How to learnt matrix element index...
m=[10 11 12 13 14 15 4 5 6 45 55 65] [r,c]=find(m==5)

más de 15 años hace | 1

Respondida
steady state error command
SP=5; %input value, if you put 1 then is the same as step(sys) [y,t]=step(SP*sys); %get the response of the system to a step...

más de 15 años hace | 11

Respondida
How to plot functions
One way to do it ezplot('y=1 + exp(-0.2*x)*sin(x+2)')

más de 15 años hace | 0

Respondida
Turning on grid on ltiviewer
%brute force way, it turns on the grids for all axes ha=findobj('type','axes') arrayfun(@(x)set(x,'XGrid','on'),ha) ar...

más de 15 años hace | 1

Respondida
Plot a subplot with hold on and hold off in a loop without always calling xlabel, ylabel, xlim, etc
delete(findobj(gca,'Type','line')) %delete all the lines from gca %all other axis properties should remain the same, only t...

más de 15 años hace | 0

Respondida
Help simulink
File->Model Properties->Callbacks->StopFcn Put the name of the m file in the StopFcn, that way your code will run right after...

más de 15 años hace | 0

| aceptada

Respondida
How to COnvert a simulink model to a matlab code or .m file ?
sorry but that's not possible

más de 15 años hace | 1

Respondida
Saving an Axes component
<http://www.mathworks.com/matlabcentral/newsreader/view_thread/301782 The final solution might work>

más de 15 años hace | 0

Respondida
How to add a title and logo to a figure with multiple plots?
clf subplot(211) plot(1,1,'*') title('one') subplot(212) plot(2,2,'*') title('two') axh=get(gcf,'Children...

más de 15 años hace | 0

| aceptada

Respondida
how to find highest intesity value point from a given matrix
%supposing a is your matrix [value, index]=max(max(a))

más de 15 años hace | 0

| aceptada

Pregunta


When opening GUI with GUIDE I get errors and a weird behavior
I made a GUI with GUIDE, all was working fine until today when I was going to do some changes to it, although working fine when ...

más de 15 años hace | 2 respuestas | 0

2

respuestas

Respondida
concatenate
a=[] for b=1:10 a=[a b] %replace the b with the data you want to store per iteration end a %result is inside thi...

más de 15 años hace | 0

Respondida
Plotting help
replace figure(2) by hold on

más de 15 años hace | 0

| aceptada

Respondida
Record simulation data to use it in an other simulation
I tested what you said, the scope draws the signal until it ends and continues to draw what appears to be a ramp (it keeps the v...

más de 15 años hace | 0

Cargar más