Beantwortet
Active cell number of 4 individuals by days
Hi, Check this example script: % Assuming the data is in a matrix 'data' of size 4x14 (4 mice, 14 days) % with each row corre...

2 Monate vor | 1

Beantwortet
How to upload 2 libraries (Servo and Ultrasonic) to use Matlab with arduino
Check this: Include 2 libraries in matlab - Using Arduino / Interfacing w/ Software on the Computer - Arduino Forum Yes, you ca...

2 Monate vor | 0

| akzeptiert

Beantwortet
Variance of linear system model
Hi @Valeriy, Let me answer your queries here, Multiplying by C and C’: This operation is known as a matrix multiplication. W...

2 Monate vor | 0

| akzeptiert

Beantwortet
Why fitlm function is giving wierd results?
Hi @Devendra, Hope you are doing great! The error message you’re seeing is because the predict function is expecting an input...

2 Monate vor | 0

| akzeptiert

Beantwortet
How to speed up xline / yline ?
Hi, The xline and yline functions in MATLAB are designed for convenience and ease of use, but they may not be the most efficien...

2 Monate vor | 2

| akzeptiert

Beantwortet
How can I plot a skyrmion to sphere similar to the following picture
Hi, To add to the earlier response, to know about making the color of the arrows vary gradually along the surface of the spher...

2 Monate vor | 0

| akzeptiert

Beantwortet
can someone please assist to make the square wave plot at 50Hz
Hi, To plot a square wave at 50 Hz, you need to adjust the frequency value f in your code. The frequency of the square wave is ...

2 Monate vor | 0

Beantwortet
how to solve the below transcendental equation for the given data?
Hi, The issue you're facing with the code not working consistently is likely due to the symbolic engine being reset or cleared ...

2 Monate vor | 0

| akzeptiert

Beantwortet
Modifying function to get only one value
Hello, To modify the function so that it outputs values (x), (y), and (w) based on the conditions you've specified, you can inc...

2 Monate vor | 0

Beantwortet
How to put conditions to find peaks in NDVI time series?
Hi, Check this, based on your explaination this is what I was able to come up with: Replace with correct file, and if any sma...

2 Monate vor | 0

| akzeptiert

Beantwortet
Arrhenius type fit without taking the log(y) and inverse of x
Hi, Check this to get answer to your query: % Define the Arrhenius function arrhenius = @(A, Ea, R, x) A .* exp(-Ea ./ (R .*...

2 Monate vor | 1

| akzeptiert

Beantwortet
How to plot a part of an array?
Hi, check this: % Create the x vector x = 1:20; % Calculate y based on the equation y = 2 * x + 3; % Create a figure an...

2 Monate vor | 0

| akzeptiert

Beantwortet
Square wave frequency modulation
Hi, The issue with your code is that you are not actually modulating the frequency of the square wave correctly. The way you ar...

3 Monate vor | 0

| akzeptiert

Beantwortet
How to make this code without using built-in convolution function.
To make the code without using the built-in convolution function, you can implement the convolution manually. Check how you can...

3 Monate vor | 1

| akzeptiert

Beantwortet
Class array property with size validation is SLOW
Hi, I feel here the issue is due to MATLAB handles array assignments for properties with size validation. When you specify a si...

3 Monate vor | 0

Beantwortet
swt requires wavelet tool ... can i run it without the tool
The swt2 and iswt2 functions you’re using are part of the Wavelet Toolbox in MATLAB. These functions are used to perform the sta...

3 Monate vor | 0

Beantwortet
Matlab unable to install add-ons
The error message you’re seeing is due to insufficient write permissions for the directory /usr/local/MATLAB/R2024a. This is com...

3 Monate vor | 0

Beantwortet
My First Derivative is not correctly calculated in matlab
Hey, Looks like the issue you are encountering is due to the differentiation operation. When you differentiate 'yApprox' with r...

3 Monate vor | 0

Beantwortet
Nyquistplot saveas don't generate vector graphics (.svg)
The reason why the Nyquist plot is not exporting as a vector graphic in the .svg format is likely due to the way MATLAB renders ...

3 Monate vor | 2

Beantwortet
UnderDamped Free SDOF System
Hey, The code you’ve written is for a damped system, but the damping coefficient c you’ve chosen is quite small (0.05). This me...

3 Monate vor | 0

| akzeptiert

Beantwortet
Using a FOR loop to iterate simultaneous equations
Hey, To create a MATLAB script that can handle a variable number of equations and unknowns. Here’s a modified version of your...

3 Monate vor | 1

| akzeptiert

Beantwortet
I'm receiving this error: "Incorrect number or types of inputs or outputs for function int." when trying to run the following code. I think because of the symbolic variables
Hey, The issue you’re encountering is due to the fact that int and vpaintegral functions in MATLAB are not designed to handle s...

3 Monate vor | 0

Beantwortet
Plotting functions of more than one variable, f(x,y)
Hey Conor, I checked and tried to plot using the 'fimplicit' function for the equations you mentioned. Here is a sample code ...

3 Monate vor | 1

Beantwortet
I am getting an error on the last line saying Input and target has different samples, Any suggestions?
Hey Joseph, The error message you’re seeing typically occurs when the dimensions of the input data and target data do not match...

3 Monate vor | 0

| akzeptiert

Beantwortet
When attempting to connect Simulink and SimScape Electrical components, a red dotted line appears, indicating a connection problem.
Hi Abdullah, It is my understanding that, you can see red dashed lines while connecting the blocks in Simulink and Simscape Ele...

3 Monate vor | 0

Beantwortet
Error using arxml.importer/updateModel Invalid or deleted object.
Hi Tommaso, From the error message it seems like there is an error realted to the 'updateModel' function in MATLAB's AUTOSAR p...

4 Monate vor | 0

Beantwortet
How can I export data to specific cells in a prepared Excel file?
Hi Johannes, Try using the 'writematrix' function instead of 'xlswrite' function: https://www.mathworks.com/help/matlab/ref/wr...

4 Monate vor | 1

| akzeptiert

Beantwortet
Efficient script to isolate one sub-dataset k-times.
Just check out this code snippet which I can propose to make the code more efficient by using logical indexing instead of a loop...

4 Monate vor | 0

| akzeptiert

Beantwortet
¿por qué tengo deshabilitada la función de Package al hacer una Standalone Application?
Hi Ainhoa, I am answering your question in English. The Package option is disabled when creating a standalone application beca...

4 Monate vor | 0

Beantwortet
I received the error message: Unable to perform assignment because the left and right sides have a different number of elements. Error in augLagFun>augLagScalarFun (line 175)
Hello Ebru, The error message you’re seeing is typically due to a mismatch in the number of elements between the left and right...

4 Monate vor | 0

| akzeptiert

Mehr laden