Respondida
Merging .mat files into 1 file, only containing variables in array form
the following is really basic but it does what you asked for, there are some points that you may want to improve but improvement...

alrededor de 9 años hace | 0

Respondida
How to sum same size cell blocks?
Hi Xiaohan first get the size of inpt [sz1 sz2]=size(inpt) and sum the cell2mat version of inpt sum(resh...

alrededor de 9 años hace | 0

Respondida
Merging .mat files into 1 file, only containing variables in array form
Ok, If you have exactly the same variable names in different .mat files and attempt loading them, you have to change variabl...

alrededor de 9 años hace | 0

Respondida
How to change the format of the numbers displayed on in a MATLAB plot?
1. in function getTree % add text to tree text(Z(1),X(1),mheight+1,[num2str(treeID) ',' num2str(strength)],'H...

alrededor de 9 años hace | 0

Respondida
Important Code for a program
this is the link you want: <https://uk.mathworks.com/matlabcentral/fileexchange/29373-dtmf-tones-detection> if you find th...

alrededor de 9 años hace | 1

| aceptada

Respondida
e^x/x
function plot doesn't work with input type syms Instead try the following x=[-10:0.0001:10]; y=exp(x)./x; plot(x,y...

alrededor de 9 años hace | 1

| aceptada

Respondida
How can solve the 2d transient heat equation with nonlinear source term?
have you seen these links? 1. <https://uk.mathworks.com/help/pde/examples/inhomogeneous-heat-equation-on-a-square-doma...

alrededor de 9 años hace | 4

Respondida
how can i get the fft result at specific freq?
the FFT is the fast implementation of the DFT function [Xk] = dft(xn,N) % Computes Discrete Fourier Transform % -----...

más de 9 años hace | 1

Respondida
Equation how to evaluate and obtain a value
just change the type syms x f(x) = exp(5*x); df(x) = diff(f,x); double(f(2)) = 2.202646579480672e+04...

más de 9 años hace | 5

Respondida
How to set a marker at a desired location on a plot
use a vector index, let it be k, instead of the x reference of the plot. 1. plot and add a marker x=linspace(-4,4);...

más de 9 años hace | 3

Respondida
How to change the format of the numbers displayed on in a MATLAB plot?
it would help a lot that you show the code, because the graphs have handles that you can change. Is it possible for you to po...

más de 9 años hace | 0

| aceptada

Respondida
Evaluate integral of vectorial function
if you choose c values that include or are too close to a pole, the function integral may trigger error warning because either ...

más de 9 años hace | 0

| aceptada

Respondida
Solving Inequalitis in Matlab
perhaps you'd consider upgrading to R2016 eq=x>5^.5 eq = 5^(1/2) < x solve(eq,x) = 5^(...

más de 9 años hace | 0

Respondida
can any one explain this to me
the following examples may help x = strmatch('max', char('max', 'minimax', 'maximum')) returns x = [1; 3] sinc...

más de 9 años hace | 0

| aceptada

Respondida
How can convert two (file.fig) to (file.jpg) in the same time?
put all figures to translate to .jpg in a same folder put all .fig in same folder cd 'folder_figures' get in the f...

más de 9 años hace | 0

| aceptada

Respondida
External Mode for a custom STF
have you tried either removing the ')' at the end of the previous line pointed by the error, the line ending with boolean_T *...

más de 9 años hace | 0

Respondida
How to find time of flight
1. <http://practicalphysics.org/measuring-speed-sound-using-echoes.html> suggests to measure distance to a sound reflectin...

más de 9 años hace | 0

Respondida
how to solve this differential equations with dsolve
1. solving the system syms x(t) y(t) z=dsolve(diff(x)==-y-2*y,diff(y)==-x-2*y) z.x = C2*exp(-3*t) - 3*C1*exp...

más de 9 años hace | 0

Respondida
How to restrict plots of two variables to a chosen value of a third variable?
so do you want to slice a 3D plot? t = 0:pi/50:10*pi; st = sin(t); ct = cos(t); figure(1); plot3(st,ct,t) <</ma...

más de 9 años hace | 0

Respondida
Merging .mat files into 1 file, only containing variables in array form
use the save function specifying the variable names: 1. let's say you have saved your 5 in these 5 .mat files save va...

más de 9 años hace | 2

Respondida
Why is this code saying i have a wave at 2 KHz and 6Khz??
For real only time signals, the FFT is only meaningful up to fs/2 where fs is the sampling frequency. For real only time sig...

más de 9 años hace | 2

| aceptada

Respondida
How to copy each row of a vector according to the number in another vector ?
Hi the following lines do what you are asking: A=[1 2;3 4;5 6;7 8;9 10] qc=[1;0;2;2;0] qc=qc' L=find(qc>0) ...

más de 9 años hace | 1

| aceptada

Respondida
How can I change the 'radbas' transferFcn ?
ok the reason why radbas.m is called radial function is not because when plotting the outcome on a plane it should look like ...

más de 9 años hace | 0

| aceptada

Respondida
I have the following code (recognizing individuals pixels of a matrix). For a high number of images, this is very time consuming. Therefore, ¿Could the loop be avoided ? Thanks!
there is no need to initialise the void V, go straight to the indices returned from functions * find( zeros()) * find( non...

más de 9 años hace | 0

Respondida
4D plot - representing 3 variables function
KSSV answer is still a 3D plot only. You fix constant one of the x y z, replace the constant variable with the 4th variable a...

más de 9 años hace | 5

Respondida
How can I change the 'radbas' transferFcn ?
you probably missed using the coordinates out of meshgrid rather than the ranges x and y. Try adding [X,Y]=meshgrid(-3:...

más de 9 años hace | 0

Respondida
Grouping based on similarity and indices
[v_sorted i_sort]=sort(v) in v_sorted same angles are together, all values sorted in ascending order i_sort contains the...

más de 9 años hace | 0

| aceptada

Respondida
how can a script that reads a number of strings from standard input and prints them in reverse order be written ?
Neither FOR loops nor flipr needed, just use the right indexing: str='how can a script that reads a number of strings from ...

más de 9 años hace | 0

Respondida
can anyone help me... Write a MATLAB script (called count.m) which reads a string from standard input and then counts the number of words in that string
assume only spaces, comas, full stop, .. are used between words but not before the very first word and the very last word, then ...

más de 9 años hace | 1

Cargar más