Réponse apportée
how can we plot it ?
You can not plot it. The lay out of your problem is not right. Your equation has zero crossing (=solution)according to Walter Ro...

environ 13 ans il y a | 0

Réponse apportée
Input multiple items and solve a function for those values?
function [F1,F2,Fd] = my_faran(C1,C2) F = @(C) ((9./5).*C)+32; F1 = F(C1); F2 = F(C2); Fd = F1-F2; Call the fun...

environ 13 ans il y a | 0

Réponse apportée
How can I plot this equation? keep getting ??? Error using ==> mtimes Inner matrix dimensions must agree.'
Define your variables with _linspace_: T=linspace(0,24,100); omega=((12-T)/24)*360; phi=linspace(-180,180,100); ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
exp function bode plot
I forgot to add the solution to your question. Here it is: % G(s) = (1-s/fref) / s*exp (-s/fref); G = tf( [-1/fref 1],[1...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
exp function bode plot
exp(-s/fref) is not a polynomial, you can not use _sym2pol_ in that case num = sym2poly(exp(-s/fref)); % -> not v...

environ 13 ans il y a | 0

Réponse apportée
save output of a code within the code?
First, add a handle to the figure, then, use _saveas_: rp = spm_load(spm_select); h = figure; subplot(2,1,1);plot(rp...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How can I do a summation of a signal.
The way of performing a summation is this: t = 0:0.01:1; A(1:length(t)) = 0; w(1:length(t)) = 0; y = 0; for i =...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to divide 256X256 matrix into sixteen 16X16 blocks?
You need to use _mat2cell_: X = reshape(1:20,5,4)' C = mat2cell(X, [2 2], [3 2]) celldisp(C) This code returns...

environ 13 ans il y a | 6

| A accepté

Réponse apportée
plotyy with 4 outputs
Try something like this: plot(x1,y3,'m',x1,y4,'r') hold on plotyy(x1,y1,x1,y2) hold off

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Numeric index Slider GUI
If "my_slider_k" is the tag of any of your sliders, slider_k_value = get(handles.my_slider_k,'Value'); then, set this v...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Why do i get the error "Index exceeds matrix dimensions. Error in fingerprinting (line 6) song1=song1(1:44100);" in my code
Your code says: song1=song1(1:3*44100); what assumes that song1 is at least a 1x132300 array. It seems that song1 is sma...

environ 13 ans il y a | 0

Réponse apportée
comparing between two arrays
a=[2 3 4 ; 9 8 7]; b =[ 5 2 1 ; 6 3 2]; c=[ 4 7 1; 1 2 3]; dist_ab_cluster_1 = norm(b(1,:)-a(1,:)); dist_a...

environ 13 ans il y a | 0

Réponse apportée
Replacing elements in matrix with relational operations
M=randi(10,3); n1 = 5; c1 = 4; c2 = 3; M1 = M<5; D1 = c1*M1; M2 = M>=5; D2 = c2*M2; new_M = D1...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
read data send from zigbee
ZigBee uses a serial protocol. Just create an serial object and read the input buffer. read the serial documentation to creat...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
storing values from loops
Use a temporary variable: for a=[1:100]; %coding here left out FMJ_cars_wait_2 = @(T12,MJ_V12) (lambdaMJ_sec(a) -...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
add data points to a graph
<</matlabcentral/answers/uploaded_files/182/Sin%20t%C3%ADtulo.png>> Select the "Data Cursor" on the figure window and click o...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How do I select elements out of a matrix with a loop?
You can try the following: A = rand(16); % a 16x16 random matrix B = reshape(M,4,4,16); % you will get 16 4x4 matrices....

environ 13 ans il y a | 0

Réponse apportée
How can I select a point in the figure by mouse?
You need to make use of datacursormode and getCursorInfo functions. Look in matlab help for examples on how to ...

environ 13 ans il y a | 0

Réponse apportée
last number is out of matrix range range
you can round the last element: n1=492; n2=354; x = ones(20,1); X=n1:(n2-n1)/(length(x)*1.25):n2; X2 = floor(X); X2 ...

environ 13 ans il y a | 0

Réponse apportée
How to I solve a equation?
Take a look at the following links and try to do their examples: http://www2.math.umd.edu/~immortal/206/tutorial/Solvin...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Extrapolate a sets of data
You can concatenate the two sets and plot the resulting set. This way, the points will be linked. Use _cat_ to concatenate: ...

environ 13 ans il y a | 0

Réponse apportée
what is meant by 3e4 in matlab?
3e4 = 3*10^4 = 30000

environ 13 ans il y a | 1

| A accepté

Réponse apportée
How to update Title and Subtitles each time in a loop for publishing document
For now, Matlab does not support adding changing titles iterating. You can not change the title on every iteration. Your line ...

environ 13 ans il y a | 0

Réponse apportée
Center of mass in binary image
use _text_ command: your_string = strcat( num2str(centroids(:,1)),'-', num2str(centroids(:,2))); text(10,10,your_string)...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
content of makehdr function
I think it does not, you can check the code out by typing: type makehdr

environ 13 ans il y a | 0

| A accepté

Réponse apportée
thin the boundary of objects of black & white images
Use _imerode_. From Matlab documentation: IM2 = imerode(IM,SE) erodes the grayscale, binary, or packed binary image IM, re...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
detecting speed of car
You have to know the length of the road, then, measure the time taken by the car to go along that stretch of road. velocity...

environ 13 ans il y a | 0

Réponse apportée
Clear a line drawn in plot.
Implement this in the pushbutton: children = get(gca, 'children'); delete(children(1)); The first line grabs the last...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Convert an Image to a binary (.bin) file
Try this out: I= imread('cameraman.tif'); level = .5; BW = im2bw(I, level); %choose your own options when writing to...

environ 13 ans il y a | 0

Réponse apportée
Excel data to matlab
Import your data as string using the sintax: [num,txt] = xlsread(filename,sheet,range) Once in Matlab, you can change ...

environ 13 ans il y a | 0

Charger plus