Beantwortet
How do I loop over all columns in a cell array?
Here is the complete code to calculate all outliers: load('balls_data.mat') % Note balls_data is a cell array contains some...

3 Monate vor | 0

Beantwortet
How to access data in my cell array?
If understood your question correctly, here is the corrected code: spx = [1*10^6; 1200; .08]; dpx = [10*10^6; 1500; .22]; frx...

3 Monate vor | 0

| akzeptiert

Beantwortet
Plot shows markers, but no lines, no matter what is being plotted
Here is the corrected code: x = linspace(0,10,100); y = exp(x/10).*sin(4*x); scatter(x,y) % In case, you want with lines: x...

3 Monate vor | 0

Beantwortet
How to trim start and end of time series data?
Here is how it can be done using an index option: X1 = [0.978184526233207 1.09489935704680 1.59164669497844 1.04748369986280...

3 Monate vor | 0

| akzeptiert

Beantwortet
calculate differentiation with large coefficient
Here is a bit improved solution: omeganol=2.5; E=50; I=30; L=600; syms y(x) y(x)=vpa(omeganol/(120*E*I*L)*(-x^5+2*600^2*x^...

3 Monate vor | 0

Beantwortet
How to display an image and a plot on the same figure while controlling axes
Here is how it can be attained: my_image = uint8(linspace(1,0,720)'*linspace(1,0,1280)*255); % some diagonal color gradient ...

3 Monate vor | 2

Beantwortet
Please tell me the best way to load .Raw ct image into MATLAB?
Use image(), imshow(), imagesc(): % To view Tiff image: A = tiffreadVolume('TIFF_Image.tiff'); % image() image(A(:,:,1)) ...

3 Monate vor | 0

Beantwortet
Unable to Join Tables and Timetables
Note that both tables should have identical variable names to concatenate them, see - your example 1 (corrected): Input = '2023...

3 Monate vor | 0

| akzeptiert

Beantwortet
I have a problem in the annexed excel file there are two tables, first table give the graph representing geological layers I need to get the second table with Matlab Code
If understood your explanations, here is how to collect the data from table to w.r.t xc range values and constant values of z1 ....

3 Monate vor | 0

Beantwortet
Plot lines appear fuzzy
One quick solution is to enlarge (Maximize) the figure window and then to restore (Restore) it ints original size using the righ...

3 Monate vor | 0

Beantwortet
I have a problem in the annexed excel file there are two tables, first table give the graph representing geological layers I need to get the second table with Matlab Code
Here is the solution. readmatrix() is option 1 and xlsread() is option 2: D = readmatrix('Salt Dome Interpretation.xlsx'); % D...

3 Monate vor | 0

Beantwortet
How to set the simulink in fixed solver mode and ode4 by default, so that while opening a new blank simulink page, the solver is at fixed step solver and ode4 by default ?
First, see how to adjust the solver - DOC Then follow the steps - given in this thread

3 Monate vor | 0

Beantwortet
what is NaN matrix?
It depends on what operation you have performed. The means of NaN and Inf are: NaN means not-a-number, i.e., 0/0 (also, missi...

3 Monate vor | 1

| akzeptiert

Beantwortet
all ODE function returns NaN
Note that the found numerical solutions of y(:,1), .. y(:,5) are in different scales and therefore, it is appropriate to polt th...

3 Monate vor | 0

Beantwortet
How can I fix value of vector inside for loop ?
Your assignment is not quite clear but to the best understandinbg of mine. Note that repelem(A,1) if A is a scalar, the result i...

3 Monate vor | 1

| akzeptiert

Beantwortet
all ODE function returns NaN
There are two ways to address this issue. (1) Let ode15s to select appropriate step size; (2) make the step size much smaller th...

3 Monate vor | 0

Beantwortet
Solving for Zeros Across a Range
There is an err in the loop in i = linspace(1,I) leads to non integer value that is NOT acceptable for an index. Here is a corre...

3 Monate vor | 0

Beantwortet
How to save the scatter plot with and without transparency
Use exportgraphics() and also, note where the set() command for figure a and b is used and where exportgraphics() is used, e.g.:...

3 Monate vor | 0

Beantwortet
Exported Regression Model is outputting NaN's when given new data.
There is one crtical point that is in the input data for the support vector machine regression model the input data needs to be ...

3 Monate vor | 0

| akzeptiert

Beantwortet
Recovering shape of periodically sampled signal in near resonance conditions
As understood your question correctly, is that you are trying to get the shape function which is the envelope thata can be compu...

3 Monate vor | 0

Beantwortet
Recovering shape of periodically sampled signal in near resonance conditions
There are several fucntions of MATLAB which can be used in such exercises. They are interp1(), interp2, interpn,pchip, spline, g...

3 Monate vor | 0

Beantwortet
Assign a row vector to a row of an array using logical indexing to omit certain values
As you stated that Q and G are zero matrices generated for memoty allocation if so, and you want to to fill out the values of Q ...

3 Monate vor | 0

Beantwortet
Modeling using 6 differential equation and a constraint?
The problem is with this [ ] assigning step in your code: v = [ ]; What is the purpose of diving a number by an empty variable...

3 Monate vor | 0

Beantwortet
how to use elements from array to sort data
Here is the corrected code: numdata=readmatrix("res Data.xlsx"); Q = numdata(1:5, :)'; F = numdata(6:10, :)';

3 Monate vor | 1

Beantwortet
How to calculate 95% confidence interval using regression analysis?
If there is a linear fit model for x vs. y(x), then fitlm() can be used, e.g.: x = (0:.1:13)'; Noise = 35*randn(size(x)); y =...

3 Monate vor | 0

| akzeptiert

Beantwortet
Solving matrix differential equation
It looks likse sizes F1 and F2 are coherent with R1 and R2. The only question in your given exercise is R1' and R2' are transpo...

3 Monate vor | 0

Beantwortet
Magitude from a three phase signal
Here is how to perform FFT and compute the phase angle values in rad: data = readmatrix('D_Sample.xlsx'); % Sample data im...

3 Monate vor | 0

| akzeptiert

Beantwortet
Magitude from a three phase signal
Simulink -> Simscape toolbox, there is a block to compute magnitude and angle calculation: Calculate the magnitude and phase of...

3 Monate vor | 0

Beantwortet
Grouping Categories in Scatter Plot
If understood your question correctly, here is one example how to address this issue: DATA = randi(100, 25, 1); BIN = discreti...

3 Monate vor | 0

Beantwortet
What is the difference between "any" and "all" function?
There is one significant difference between any() and all(). Here are definitions: (1) any() - any True if any element of a ...

3 Monate vor | 1

Mehr laden