Answered
plotting lines as separate objects
Try this (substituting your own data matrix for *|‘D’|* here): D = sort(rand(30,2)); ...

8 years ago | 0

| accepted

Answered
Partial derivatives of the inline function
Your Question lacks detail. The <https://www.mathworks.com/help/symbolic/jacobian.html *|jacobian|*> (link) function is likely ...

8 years ago | 0

Answered
Prediction of time series temperature
*_‘How can I predict the future data until 2050?’_* You probably cannot. See a discussion on any <https://en.wikipedia.org/w...

8 years ago | 0

Answered
How to extract rows by date?
I have no idea what you are doing, so I am _guessing_ here. If you have *|R2016b|* or later, see if the <https://www.mathwo...

8 years ago | 1

Answered
How do I search for a wildcard file pattern (\**\* or /**/*) with in a directory in an OS independent way
Use the *<https://www.mathworks.com/help/matlab/ref/filesep.html *|filesep|*> (link) function to get the file separator for the ...

8 years ago | 0

Answered
classify data from csv fil
The loop and *|if|* block are not necessary. I would simply do this: M = randn(10, 1); % Cr...

8 years ago | 0

| accepted

Answered
what's error in this program please help me?
The error is: Undefined function or variable 'dy'. Error in ... (line ...) dv(j,i)=c1*dy(f,i)*z(f,j);...

8 years ago | 0

Answered
Creating stacked bar in matlab
See the documentation for the <https://www.mathworks.com/help/stats/boxplot.html *|boxplot|*> (link) function.

8 years ago | 0

Answered
How to create gradient of randomly spaced data at each point of input array
For unequally-spaced points, I always use: dydx = gradient(y)./gradient(x); It depends on the result you want.

8 years ago | 0

| accepted

Answered
I am trying to get all 20 random points to have random velocities
The problem _may_ be in that you are discarding the original *|‘x’|*, *|‘y’|*, and *|‘z’|* vectors when you update them in the l...

8 years ago | 0

Answered
Matrix Dimensions Must Agree
Two problems: *|1.|* Your *|‘g1’|* vector is _empty_. The length (optional third argument) to *|linspace|* must be an inte...

8 years ago | 1

| accepted

Answered
How do I change cell array to matrix?
The numbers are stored as character arrays, the reason the dimensions did not match. Simply convert them to a numeric array...

8 years ago | 0

| accepted

Answered
How can I find an equation that fit a set of data?
If your data are nonlinear (they definitely appear to be), and you know the process that created your data, develop a mathematic...

8 years ago | 0

Answered
How can i plot snapshots of my data?
You cannot get everything you want in one plot. This plots the positions and velocities for each identifier in your posted ...

8 years ago | 0

| accepted

Answered
how to rotate an array about the best fit line
If you want to eliminate the slope of the regression and plot your results parallel to the *|x|*-axis, subtract the fit at each ...

8 years ago | 1

| accepted

Answered
Plot the Weibull Distribution Hazard Function
According to the documentation for the <https://www.mathworks.com/help/stats/exppdf.html *|exppdf|*> (link) function, the second...

8 years ago | 0

Answered
Plot result of fourier
See the documentation for the <https://www.mathworks.com/help/releases/R2015a/matlab/ref/fft.html *|fft|*> (link) function. ...

8 years ago | 0

Answered
Z-score and True Value
This is straightforward: z_score = 1.21 p = normcdf(z_score) new_z = norminv(p) z_score = ...

8 years ago | 0

Answered
Finding the characteristics of signal
I would use the <https://www.mathworks.com/help/signal/ref/spectrogram.html *|spectrogram|*> (link) function to see what the dif...

8 years ago | 0

| accepted

Answered
Need to put results that come in a 1x3 together for easy access. Maybe into a vector?
Since *|‘a’|* will always have *|3|* columns (from your *|reshape|* call), but may have different row lengths, I would save it a...

8 years ago | 1

| accepted

Answered
update the value of k in the numerator
Create an anonymous function from the *|tf|* function call: *_Example_ —* s = tf('s'); h = @(k) tf(k*30, [1 1 6 8])...

8 years ago | 0

Answered
Converting datenum to days
The output of *|datenum|* are whole days to the left of the decimal separator (as the number of days from January 0, 0000), and ...

8 years ago | 0

| accepted

Answered
Explanation of num2str(x) - '0'
Character arrays exist as ASCII or other numeric encodings, so that each letter or other character is assigned a numeric value. ...

8 years ago | 3

Answered
use of the unique function
Try this: apartments = ['a1'; 'a2'; 'a3'; 'a1'; 'a4'; ...

8 years ago | 0

| accepted

Answered
How read hex values from CSV?
Assuming it was not created by Excel, use the <https://www.mathworks.com/help/matlab/ref/textscan.html *|textscan|*> (link) func...

8 years ago | 0

Answered
is it possible to do bootstraping in matlab?
Use the Statistics and Machine Learning Toolbox <https://www.mathworks.com/help/stats/bootstrp.html *|bootstrp|*> (link) functio...

8 years ago | 1

| accepted

Answered
converting a date column with yyyymmdd to matlab date number?
This seems to work: ymdCol = [19960530; 19960531; 19960601; 19960602] % Create Column DN = datenu...

8 years ago | 0

| accepted

Answered
How to plot an integral a function handle
I am not certain what you want. Try this: N = 51; I = @(x,y) norm(exp(-1i*pi*x)- y'.*exp(-1i*pi*x*(0:(N-1)))).^2; ...

8 years ago | 1

| accepted

Answered
This code is in response to the i just posted
This will get you started: %%standard model conditions K = 2.5;%Wm^-1 C^-1 A = 1.25; %uWm^-3 Q = 21E-3; %Wm^-2 ...

8 years ago | 0

Answered
Ode45 and Cauchy problem
Two small problems — your derivation of the differential equation is incorrect (I used the Symbolic Math Toolbox to derive it), ...

8 years ago | 0

Load more