Answered
FFT, THD and Fourier equations
Note that your different data sets has different fundamental frequencies and other resonant freq values. Besides, some of your d...

2 years ago | 0

Answered
Trying to Solve system of 2 Equations "Unable to find explicit solution" Code In Description
Note that you have six unknowns (a1, a2, r_1, r_2, alpha, E) an two equations. It is possible to get two solution type expressio...

2 years ago | 0

Answered
FFT, THD and Fourier equations
The solution to your exercise comes from the nonlinear fit model and fft()'s fundamental resonant frequency value, which is 2Hz....

2 years ago | 0

| accepted

Answered
Categorical covariates in parameter estimation
Yes, it should work. See this doc: https://www.mathworks.com/help/simbio/ref/groupeddata.createdoses.html

2 years ago | 0

Answered
Error while reading table
So far, the orignal file has some VB issues. Therefore, none of the suggest solutions can read the whole data even if the import...

2 years ago | 0

Answered
I don't have access to "my courses" in my profile
Did you login? There is a icon upper left corner to login with your credentials if you have already registered. If you haven't, ...

2 years ago | 0

Answered
how to make basic Tree data structure
If understood correctly your question, the structure variable can be built in the following way, e.g.: Child1 = magic(3); Chil...

2 years ago | 0

Answered
Euler's Formula and FFT
If understood correctly, you are trying to find a non-linear fit of the large flacturations using sine and cosine functions. If ...

2 years ago | 0

| accepted

Answered
New to matlab, trying to understand basic functions still
The meaning of these entries are: x= D0a(:,1); % The existing variable D0a's column 1 is assigned to a new variable called x ...

2 years ago | 0

| accepted

Answered
Creating Binary Image from Polygon Label in MATLAB
Here is how it can be done: I0 = imread('HVOF.png'); I = rgb2gray(I0); % Polygon coordinates XY=[50 150; 200 250; 300 350; 1...

2 years ago | 0

Answered
Integrating a complex function
Here are two points to consider: (1) to specify the error tolerances and make them more crude, e.g.: 'RelTol',10,'AbsTol',0.1 ...

2 years ago | 0

Answered
how to calculate the shape factor?
Is this what you are trying to calculate? % Read Image IMG = imread('IMAGE_Blob.png'); % Convert from RGB to gray scale IMG_...

2 years ago | 0

Answered
How to plot a map with logarithmic colorbar and colormap with imagesc
for t = 10:10:200 %every t is referred to a time of the day figure(t) colormap('parula'); my_clim=[0 62]; c...

2 years ago | 0

| accepted

Answered
How can I mark the central point in annotate box
If you're plotting the results, then you can put the text or symbol, arrow, etc at specific coordinate points using annotation.

2 years ago | 0

Answered
Is there a way to improve the code speed?
Without digging much into your code, I'd suggest to put: fplot(f0+kvco*h(t-tc(i-1)),[double(tc(i-1)),double(tc(i))]) outside o...

2 years ago | 0

Answered
Matlab simulation code error
Here is the corrected code. Note the errors with: (1) symbolic math expression and solving the equations: syms, solve() (2...

2 years ago | 0

Answered
Including a value inside an annotation
Here is the solution to this issue: q = 48; DIM = [0.42 0.864 0.1 0.1]; STR = strcat('L. St. Lawrence - INCREASE IN ISI (n= ...

2 years ago | 0

Answered
Solve for an unknown matrix like solve() for dimension one
This exercise can be also simulated/solved by this way: N=3; % Dimension syms d [N N] Eqn = d*randi(10, N)==randi(...

2 years ago | 0

Answered
How to plot the Taylor Series expansion of sin²(x) in MATLAB
There is a fcn called taylor() which can be used for your simulations as well intead of typing the whole formulation of polynomi...

2 years ago | 0

Answered
want to calculate std_value and mean_value
Here is the correct code: img1 = imread('ALPS.jpg'); figure imshow(img1); title('Original Image') std_value1 = std2(img1); ...

2 years ago | 0

Answered
plot area with different collar.
This exercise can be done with plot() and patch() and/or fill() fcns. (1) Determine the values of VOLL, Lambda, DI_at, d_at, D...

2 years ago | 0

Answered
The values from the for loop won't store on the array
You can display/write out the calculated data, and store or write to an external files as well. See how it can be done: A = rea...

2 years ago | 0

Answered
error Conversion to double from function_handle is not possible.
Here is the corrected solution: t = 0:0.01:10; nt = length(t); % Inicialización de u y u' u = zeros(size(t)); p = zeros(1,n...

2 years ago | 0

Answered
How do I fill the image completely into the chart in App Designer?
One possible solution for your plotted data without the white areas at the bottom and on the righthand side is exaplained via th...

2 years ago | 0

Answered
I I'm new to matlab and Ikeep getting "Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in "THRUST CURVE FUNCTION LINE 3"
From your post, what I understood is that you're trying to make linear interpolation of the imported data. I am not 100% sure if...

2 years ago | 0

Answered
Compare the graphs of 𝐬𝐢𝐧 𝒕 and 𝐜𝐨𝐬 𝒕 on the same plot, where the time 𝑡 starts from 0 and ends at 4π, with an increment of T/100.
You can use a few different MATLAB built-in fcns to get this exercise done, such as, colon ":" operator, plot(), hold, legend(),...

2 years ago | 0

Answered
Interpolation on multiple data sets
If understood correctly, the interpolation can be done using matlab's builtin fcns interp1() for 1D, interp2() for 2D, interp3 f...

2 years ago | 0

Answered
extracting rows of data
The answer lies in your original data - see the plot of your data. You are extracting the same data with your logical indexing o...

2 years ago | 0

Answered
Help finding cell array indices for unique characters in string names
All combined into one: names = cell(1, 10); names{1} = '*H'; names{2} = 'HO2'; names{3} = '*H2'; names{4} = 'H2O'; names{5...

2 years ago | 0

| accepted

Answered
2D color map shows the image correct but the Y scale is flipped.
Use 'reverse' option for the plot axis value direction, e.g.: t=linspace(0,1.2, 1e3); dt = t(2)-t(1); Fs = 1/dt; f1 = 5; f2...

2 years ago | 0

Load more