Réponse apportée
switch-case interaction with uigetfile
Your code is working without any problems in matlab 2008b.

environ 15 ans il y a | 0

Réponse apportée
How to compile a matlab program?
deploytool

environ 15 ans il y a | 0

Réponse apportée
How to remove text from fsolve result
clc clear options = optimset('Display','off'); f=@(x)[3*x(1)^3+x(1)^2-18; x(2)^3-5*x(2)^2+10]; x = fsolve(f,[0.001...

environ 15 ans il y a | 6

Réponse apportée
How to remove text from fsolve result
Your code doesn't return any text, it just sends a message to the command line and puts the result in the variable x.

environ 15 ans il y a | 0

Réponse apportée
How to download files from internet?
doc urlread % to get html code doc urlwrite % to get a file and save it to your hardrive

environ 15 ans il y a | 2

| A accepté

Réponse apportée
Extracting data from a loop
function Sactual = Untitled(P,Cactual) for Sactual=0:10 Ccalculated=S*P; if Ccalculated~=Cactual, break,end ...

environ 15 ans il y a | 0

Réponse apportée
How to add legend of consicutive plots on the same graph?
http://www.mathworks.com/help/techdoc/creating_plots/braliom.html

environ 15 ans il y a | 0

Réponse apportée
What matlab easter eggs do you know?
Today I found that these functions: step impulse From the Control System Toolbox work without any arguments, the...

environ 15 ans il y a | 0

Réponse apportée
lowpass digital Butterworth filter
The transition from pass band to stop band occurs at a normalized frequency Wn=1 Digital Filter Design T Parks, C Burrus (Wiley...

environ 15 ans il y a | 0

Réponse apportée
Error with find command for a matrix
[r c]=find(Test1Signal1==a) instead of [r c]=find(Test1Signal1,a)

environ 15 ans il y a | 1

Réponse apportée
DTMF : Determining the pressed button on a phone
doc fft If you have many combinations of frequencies you must first separate the wav file in pieces and analyse each one with...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How plot a shifted Parabola?
x=-10:0.1:10; y=x; z=x.^2+y.^2; ang=pi/4; sm=[cos(ang) 0 sin(ang) 0 1 0 -sin(ang) 0 cos(ang)]; r...

environ 15 ans il y a | 0

Réponse apportée
opposite of :
reshape(A,3,3)

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to cancel the save program?
Another way, might be better because the return function can have undesirable consequences. fileName = inputdlg('Please ente...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to cancel the save program?
if directoryName == 0 %# User pressed the "Cancel" button... directoryName = ''; %# ...so choose the empty ...

environ 15 ans il y a | 0

Réponse apportée
what is the difference between n={ } and n=[], and what are they?
{} is used for cells and [] for arrays (matrix) both can store strings but the arrays can't store strings and numeric values at ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Creating vector of symbols
A=[3 3]; %create any numeric vector or matrix A=sym(A) %convert it to symbolic A=double(A) %convert it back to numeric (do...

environ 15 ans il y a | 0

Réponse apportée
How plot a shifted Parabola?
plot3(X+10,Y+10,Z); %this shifts the parabola 10 units on both x and y axis

environ 15 ans il y a | 1

Réponse apportée
automatic resize of one graph using subplot function
x=0:0.1:10; s1=subplot(121) plot(x,sin(x)) s2=subplot(122) plot(x,tan(x)) xlim(s1,[0 100]) %define your own x l...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
how to reshape an n x 1 matrix into a squre matrix using matlab?
function [SQmatrix,flag]=vec2SQmat(vec) %[SQmatrix,flag]=vec2SQmat(matrix) % %This function receives a vector and tri...

environ 15 ans il y a | 0

Réponse apportée
getting right t-value for sin wave
ok now I got it, if the objective is to add noise to a sine wave you are doing it the wrong way. t=0:0.001:2 f=10; a=rand...

environ 15 ans il y a | 0

Réponse apportée
Six phase induction motor model request
The SimElectronics™ simulink library got one Induction Motor block and you can choose the number of phases and many more paramet...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Test different number(values or label) in matrix?
number of different values, A is your matrix numel(unique(A)) All code: a=[0 0 0 0 0 0 0 3 3 0 0 0 0 0 3 3 3 ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to invert a sample?
Ok here's my worst code to do that for you Sample=[3 4 5 7 9 8 4 3 5 6 7] OutSample=[]; for lo=numel(Sample):-1:1 ...

environ 15 ans il y a | 1

Réponse apportée
how to convert block diagram (simulink )to m-file code ?
There's no way to convert it directly. You do your project on simulink or on matlab's m code, you can also do in both at the s...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
generate a signal of followings notes [240 256 288 320 360 400 450 480hz] with sampling rate of 8000 samples/sec each of duration 2 sec after the delay of 1 sec?
nice homework and not a single mention of the signal type and amplitude, are you expecting us to do it for you? at least show so...

environ 15 ans il y a | 0

Réponse apportée
Get latest value from workspace variable in callback
1- Avoid using global variables, there are several better ways to share data, use arguments to share data or in your case (the t...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Representing a Matrix Graphically (but not exactly)
a=[5 2 1 0 2 3 9 3 7] axis([0 size(a,2) 0 size(a,1)]) for b=1:numel(a) [x,y]=ind2sub(size(a),b) text(x,y,num2str(a...

environ 15 ans il y a | 0

Réponse apportée
How to read jpg images in a loop
c=cell(1,4); for i=1:4 c{i}=imread(sprintf('img%d.jpg',i)); end

environ 15 ans il y a | 7

| A accepté

Réponse apportée
How do I plot the first four Chebychev polynomials in MATLAB?
clf;hold all; min=-1;max=1;points=1000; x=linspace(min,max,points); t0=1+0*x; plot(x,t0) t1=x; plot(x,t1) ...

environ 15 ans il y a | 0

Charger plus