Réponse apportée
Given an equation, i have to graph it in 3D and it should look like a water ripple
amp=200; [x,y]=meshgrid(0:100,0:100); const1=1; const2=0.001; z=(amp*cos(sqrt((x.^2+y.^2)*const1))./exp((x.^2+y.^2...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
ERROR USING SET() ? GUI, Handles
It looks like you have your code inside a while loop, when you exit your GUI the handles are deleted but the loop still tries to...

plus de 14 ans il y a | 0

Réponse apportée
Colorbar related
colorbar('YTickLabel',... {'-3*10^-4','-2*10^-4','-1*10^-4','0',... '1*10^-4','2*10^-4','3*10^-4'})

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Conversion to double from sym is not possible
Your expressions R2 and x got several symbolic variables and because of that you can't convert it to double (by using double(exp...

plus de 14 ans il y a | 0

Réponse apportée
Plotting several graphs in one plot
Do it like this: s1=subplot(311);hold(s1) %create each subplot and hold it s2=subplot(312);hold(s2) s3=subplot(313);...

plus de 14 ans il y a | 0

Réponse apportée
Customize a colormap
maybe this c=zeros(64,3); c(1:16,1)=1; %red c(17:32,1)=1; %orange c(17:32,2)=0.5; %orange c(33:49,1)=1; %yellow...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to represent two different quantities in the same 3d figure?
One simple example: x1 = [0:.1:40]; y1 = 4.*cos(x1)./(x1+2); z1=2*sin(x1); x2 = [1:.2:20]; y2 = x2.^2./x2.^3; ...

plus de 14 ans il y a | 0

Réponse apportée
out of scope timer or not saved to variable
delete(timerfindall) %if you only have that timer %timerfindall is a MATLAB function

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
GNU Octave vs. Matlab
The Mathworks has nothing to fear, their software (MATLAB+Simulink+Toolboxes) is very mature and well documented, it is expensiv...

plus de 14 ans il y a | 1

Réponse apportée
Expanding and interpolating between sequential values in a nx2 matrix
m=[1 3; 2 6; 3 1; 4 9]; mm=interp2(m); mm(:,2)=[]; %remove the midle column mm %your result

plus de 14 ans il y a | 0

Réponse apportée
dialog box option instead of the input command
prompt = {'Enter ulimit:','Enter llimit:'}; dlg_title = 'Enter the limits'; num_lines = 1; def = {'1','2'}; %default...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to create s-function in simulink with m-file
<http://www.mathworks.com/help/toolbox/simulink/sfg/f7-67622.html Writing Level-2 MATLAB S-Functions>

plus de 14 ans il y a | 1

Réponse apportée
compass axis labels
<http://www.mathworks.com/support/solutions/en/data/1-DRAF4Z/index.html?product=SL&solution=1-DRAF4Z How to change the axis lim...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
compass plot
amp = [1.0448,0.365,0.0712,0.0622,0.1027]; pha = [77.16,105.75,61.67,320.84,101.95]; rdir = pha * pi/180; [x,y] = ...

plus de 14 ans il y a | 0

Réponse apportée
Beginner Question on Older Version 6.5.0 or (R13)
You don't have the Symbolic Math Toolbox™ installed. Execute this: ver and see if the Symbolic Math Toolbox™ is on the list...

plus de 14 ans il y a | 0

Réponse apportée
IF statements to compare Imaginary Numbers
Do this D==X1 ans= 1 0 It's really something about floating point, try doing this: (D>=X1-eps & D<=X1+eps) now ...

plus de 14 ans il y a | 0

Réponse apportée
Relay block to generate signal PWM
Why do you need the relay block to generate the PWM? This should suffice: [sine wav] -----> [compare to constante] -----...

plus de 14 ans il y a | 1

Réponse apportée
Cobweb graph
Check this it <http://www.math.uu.se/~warwick/vt04/DynSyst/matlab/cobweb.m cobweb by Warwick Tucker> , it works very good.

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Get value from simulink model to matlab gui while simulink is running
# When you use get_param where? what block and what code? # That command can only get the parameters supported by the block you ...

plus de 14 ans il y a | 2

Réponse apportée
What is your time zone?
GMT+1

plus de 14 ans il y a | 0

Réponse apportée
m files as Function Inputs !!
function d = delayMethod(filename1,filename2) data1 = importdata(filename1); data2 = importdata(filename2); ...

plus de 14 ans il y a | 0

Réponse apportée
Slider in GUI
not working? how can we help if you don't provide enough details (error message at least), please be sure that variablemax and m...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
how to use plot?
Maybe this syms x th=[0:0.05:1.57]; [x]=solve('cos(th+x)=0','x'); f=subs(x,'th',th); plot(th,f,th,cos(th),'r'...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
What does Answers provide that CSSM, Stack Exchange, etc do not
The voting system allows any user to see the best answers right away without having to read all answers and comments. The mar...

plus de 14 ans il y a | 2

Réponse apportée
Plot in complex plane - Symbolic toolbox
That doesn't look like MATLAB code, are you using MUPAD instead?

plus de 14 ans il y a | 0

Réponse apportée
quick question for pade function
[num den]=pade(100,1) num= -s+0.02 -> one zero at s=0.02 den= s+0.02 -> one pole at s=-0.02 You can see the zeros and poles l...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
integration
yes and no, to do symbolic integration use int syms x int(x*log(1 + x), 0, 1)

plus de 14 ans il y a | 1

Réponse apportée
Change time function tic, toc
It's just the same like you going from your house to the supermarket expecting to always take the same time up to the second, th...

plus de 14 ans il y a | 1

Réponse apportée
How to stop a script from executing
%code error('Mid script reached, this error message was made on purpose') %code Another alternative could be the us...

plus de 14 ans il y a | 1

Réponse apportée
ismember error
It works just fine in this example, you also don't need the ==1 in the find argument. A={'580135' '803111' '803111' '803111...

plus de 14 ans il y a | 0

Charger plus