Answered
Distance and velocity from acceleration plot
You could use cumtrapz(), twice. Caution: using numeric integration to calculate distance and velocity is rather prone to error...

4 years ago | 0

| accepted

Answered
Getting a system of equations and the using ODE45
I recommend that you read the first example for odeFunction() to see the flow to turn an array of equations into something that ...

4 years ago | 0

Answered
what's the problem in defining the function in for loop?
tspan=[ti tf]; [time,Y] = ode45(f,tspan./tp,[sqrt(p);sqrt(p);0;0;0.01]); When you use a vector of length 2 for the tspan, ode4...

4 years ago | 0

| accepted

Answered
Find index of unique pixel values and assign a different pixel value to the grayscale image.
map = cast(0:50:250, class(Img)); NewImg = map(Img + 1); Or more simply, NewImg = Img .* 50;

4 years ago | 1

| accepted

Answered
Possible to prohibit Account Sharing ?
As each person logs in, send them an asymmetric encryption key, and record it against the username. Exchange packets of data wi...

4 years ago | 0

| accepted

Answered
how to convert 4D into 3D?
split = reshape(cropVol, size(cropVol,1), size(cropVol,2), size(cropVol,3)*size(cropVol,4)); This would give you a 3D volume in...

4 years ago | 0

| accepted

Answered
I cannot close matlab or data acquisition tool!
set(findall(groot, '-property', 'CloseRequestFcn'), 'CloseRequestFcn', '') This should turn off all CloseRequestFcn, allowing y...

4 years ago | 0

Answered
Prevent typing string in edit text
These days you would use a uieditfield('numeric') which requires uifigure() (and will not work for traditional figures)

4 years ago | 0

Answered
there are two coupled differential equation, I try to solve that differential for the i = 1 to 5, but i think my for loop is incorrect.
Note that because you use A(i+1) and O(i-1) you cannot produce plots for the first or last entries in A or O. %number of data p...

4 years ago | 0

Answered
How to decide interpolation technique?
You might want to choose a different aggregation method such as 'minutely' format long g filename = 'https://www.mathworks.com...

4 years ago | 0

| accepted

Answered
How can I delete a row based on the value of the previous row?
Not a full algorithm, but something to think about rng(1234) data = randi(99, 1, 20) %row vector G = tril(data.'-2 >= data)...

4 years ago | 0

Answered
Finding function for x in f(x,y,z)=0 and plotting it in 3d phase space
Generally speaking, that is not always possible. Or sometimes it is only approximately possible. If you have the symbolic toolb...

4 years ago | 0

| accepted

Answered
What's fid in "Training a Model from Scratch"?
rawImgDataTrain = uint8 (fread(fid, numImg * numRows * numCols, 'uint8')); In this context, fid would be fid = fopen('Some_MNI...

4 years ago | 1

| accepted

Answered
If for loop repeated itself many times, can I plot what calculated inside for loop in ONE CURVE ?
I suggest you use animatedline() and addpoints() . You would need to keep track of your independent coordinate, such as L = ani...

4 years ago | 0

| accepted

Answered
vpasolve and fimplicit not returning anything
ebar=10; syms y x=0.5; eqn = coth(12.*ebar./x.*(y.^(-5)-y.^(-11))) - ... 1./(12.*ebar./x.*(y.^(-5)-y.^(-11)))- x./y == ...

4 years ago | 0

| accepted

Answered
How to eliminate variables in a system of equations that contains exponential equations
Q = @(v) sym(v); sigbar = Q(1); Mbar = Q(0.1142); Rbar = Q(55.91); rhol = Q(660.7); Tv = Q(343); kl = Q(0.1164); hfg = Q(...

4 years ago | 0

| accepted

Answered
pskmod output is complex, I expect out = I*cos(2*pi*fc*t) - Qsin(2*pi*fc*t)
https://www.mathworks.com/help/instrument/creating-and-downloading-an-iq-waveform-to-a-rf-signal-generator.html IQData = Iwa...

4 years ago | 0

| accepted

Answered
Can't retrieve data from .mat file
temperature = input.t; pressure = input.p; Note that we recommend against using "input" as the name of a variable, as it...

4 years ago | 0

| accepted

Answered
Inf resulted when calculating mean
You have inf in your data. mean() of data is sum() of the data divided by the number of elements of the data. sum() that include...

4 years ago | 0

| accepted

Answered
Why do I get this error of the '=' operator? I am trying to get the individual mean values of the blobs of pixels (in the image there are blobs of pixels and I want each mean)
info_table = table(meanOfPixelsInRoi = mean(grayImage(roi)), meanOfPixelsInRoi, 'VariableNames', {'FileName', 'Mean of pixel b...

4 years ago | 0

Answered
How to ensure that MATLAB reads the first column as a column in a table?
MATLAB does not put a title on RowNames. If you want a title for that column, you will need to treat it as any other variable. ...

4 years ago | 0

Answered
Help plotting specific points
x = [6.1, 6.085, 6.16, 6.22, 6.515, 6.605, 6.685, 6.75]; y = [0.0126,0.0123,0.0122,0.01186,0.0116,0.0115,0.0114,0.0111]; point...

4 years ago | 1

| accepted

Answered
How to find L from the given code?
syms L e = exp(sym(1)) lags = 0.6; k1 = 3; k_1 = 1; k2 = 2.5; k3 = 1; k_3 = 1; k4 = 2; k5 = 1; E1 = 1; E2 = 2; K1 = ...

4 years ago | 1

Answered
Legend of subplot duplicates entry after for loop
setting xlim and fontsize and the other items do not cla (clear axes). You then hold on, draw, hold off. Next cycle you r...

4 years ago | 1

| accepted

Answered
How to delete values in unqualified matrix rows?
bwareafilt(logical(matrix), [n inf])

4 years ago | 0

Answered
I what to do my thesis paper on geographic adaptive fidelity(GAF) protocol, can anyone help me MATHLAB source code of GAF protocol?
These authors have implemented GAF in MATLAB. Perhaps one of them will be willing to provide the source code. (However in my...

4 years ago | 0

Answered
Global distribution of Tempreture data
See https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data

4 years ago | 0

Answered
issues with 'stairs' input type
perhaps you are looking for stepplot()

4 years ago | 0

Answered
What is the difference between nominal and categorical?
<https://www.mathworks.com/help/stats/nominal-and-ordinal-arrays.html> nominal is older, Statistics and Machine Learning Tool...

4 years ago | 0

Answered
Created Shape file from matrices
shapewrite(Data(:), 'EBB_current.shp');

4 years ago | 1

| accepted

Load more