Answered
Only the ylabel does not change to latex interpreter
The LaTeX interpreter doesn’t like the ‘µ’. Try this: ylabel('$Average droplet velocity [\mu/ms]$', 'Interpreter','latex');...

5 years ago | 0

| accepted

Answered
How to add labels to the LEFT of a table
I’m not certain what you want. Experiment with this — Time = (datetime('2015-11-15 00:00:24')+hours(0:1.1:5.5)).'; Humidit...

5 years ago | 1

| accepted

Answered
Filter Sensor signal data to a vector of certain length
I would use interp1 to interpolate the higher-frequency sensor record to the times of the lower-frequency sensor record. If t...

5 years ago | 0

| accepted

Answered
How do I plot disorganized data?
I would first try the sortrows function. If I understand correctly what you want to do, that should work.

5 years ago | 0

Answered
How do I plot an intersection of a surface 3D and a plane?
Use the contourf function to get the intersection of the plane and the surface, and plot the result — H=0.5; nmax=6; l...

5 years ago | 1

| accepted

Answered
Plotting graphs for scaling analysis
The most common problem I see here on Answers is forgetting to use element-wise division, so (./) instead of (/). Making thos...

5 years ago | 0

Answered
Finding a variable in a very complicated equation
It would be nice if the constants were supplied. Using random numbers for them — x = rand; y = rand; P = rand; EI = rand;...

5 years ago | 1

| accepted

Answered
stem command working on the oppisite side of the axis
It is necessary to give stem a different base value in order for it to plot upwards to a negative value. Try this — s = tf(...

5 years ago | 0

Answered
How to make plot3 as surf?
One option might be to use repmat — z_sec2 = repmat(z_sec, 97, 1); then — figure surf(x_sec,y_sec,z_sec2) I have no idea ...

5 years ago | 0

| accepted

Answered
plot a 3d function (with three independent variable)
The isosurface function would likely be most apprroppriate. See the documentation section on Volume Visualization for more opt...

5 years ago | 0

| accepted

Answered
How to calculate the standard error of my linear regression coefficient?
You can certainly look this up and calculate it on your own, however using fitlm and predict is easier — x=[-7 -6 -5 -4 -3 -2 ...

5 years ago | 1

Answered
logging time and data and store it in a matrix
It is possible to use detectImportOptions and set the variables, however I find the following approach easier: T1 = readtable(...

5 years ago | 0

Answered
how do I integrate a pre-recorded function?
Try this — syms r theta p1 = r.* cos(theta); polarfun(r,theta) = p1 polarfcn = matlabFunction(polarfun) ...

5 years ago | 0

| accepted

Answered
show the output of subplot as a full screen show
Try something like this — hf = figure; subplot(2,1,1) plot(1:100, randn(1,100)) grid subplot(2,1,2) plot(1:100, sin(2*pi*...

5 years ago | 0

| accepted

Answered
Help with syms ode solving
The differential equation is nonlinear, so no analytic expression for it exists. Try this instead — syms Ca(z) Cb(z) z Y ...

5 years ago | 0

| accepted

Answered
Computing spectrogram using STFT
Use the pspectrum function with the 'spectrogram' option.

5 years ago | 0

Answered
Plotting coordinates for this graph
Use the text function to display the values of each pint near (or on) the point.

5 years ago | 0

Answered
How to divide a string into multiple rows
Transpose after doing the reshape call: A = [1 2 3 4 5 6 7 8 9]; Ar = reshape(A,3,[]).' .

5 years ago | 2

| accepted

Answered
How can I add a legend in the end of sublot ( on the bottom of sublot ) ?\
@Rahim Rahim — Responding to your Comment to your earlier Question, I took a look at this. This is the best I can do — x1=[...

5 years ago | 0

Answered
Matlab for loop plots curves in random order
The code required a bit of tweaking. Try this — lambda= 1.94e-2; %Ang res_p= linspace(0,1.5,50); %Ang^-1 def_err = (0.4:0...

5 years ago | 1

| accepted

Answered
Default Plot Graphics Settings for Step Plots?
The options are limited with the Control System Toolbox functions. The easiest ones are in bodeoptions and more geneerally in s...

5 years ago | 0

| accepted

Answered
Brace indexing is not supported for variables of this type.
The problem is immediately apparent on viewing the contents — ViewContents = readcell('https://www.mathworks.com/matlabcentral...

5 years ago | 0

| accepted

Answered
Automatik EMG aktivity and rest Detection
Use the movmean function. The ischange function may also be helpful.

5 years ago | 0

Answered
How to fixe the For loop
Do exactly this: compare values for equality using '==' However the actual solution is likely the strcmp (or related strcmp...

5 years ago | 0

| accepted

Answered
Bode diagram command is not working
First please go into detail abouot what ‘not working’ means. If it worked before, it should still work. Run this: which ...

5 years ago | 0

Answered
How to find the maximum index in a struct
Try something like this instead: Fsize = size(F) The function form is likely to give the result you want. EDIT — (23 Apr...

5 years ago | 0

| accepted

Answered
Plot 3D Graph and make level curves
Use the plot3 function. If you then want it as a 2D plot, use the view function to rotate it. EDIT — (23 Apr 2021 at 03:...

5 years ago | 1

| accepted

Answered
How to integrate dataset over a certain domain ?
Perhaps: load data.txt S_v = data(:,2); T = data (:,1); Trange = (T >= 0.1) & (T <= 2.5); I_H = trapz(T(Trange), S_v(Trang...

5 years ago | 0

| accepted

Answered
3D plot from excel data
Try this: T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/593500/prova_stress.xlsx', 'VariableN...

5 years ago | 3

| accepted

Answered
Find all the grid points that are inside of the circle
Use the inpolygon function.

5 years ago | 0

| accepted

Load more