Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 4

Beantwortet
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 % -----...

etwa 9 Jahre vor | 1

Beantwortet
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...

etwa 9 Jahre vor | 5

Beantwortet
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);...

etwa 9 Jahre vor | 3

Beantwortet
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...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 *...

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 2

Beantwortet
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...

etwa 9 Jahre vor | 2

| akzeptiert

Beantwortet
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) ...

etwa 9 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 5

Beantwortet
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:...

etwa 9 Jahre vor | 0

Beantwortet
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...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 9 Jahre vor | 0

Beantwortet
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 ...

etwa 9 Jahre vor | 1

Mehr laden