Manikanta Aditya
Followers: 0 Following: 0
Feeds
datetime adjustment in x-axis plot
Hi @vignesh mohan You can adjust the x-axis of your plot by setting the XTick and XTickLabel properties of the axes. Here’s how...
4 days 前 | 0
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...
8 days 前 | 1
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...
9 days 前 | 0
| 已接受
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...
11 days 前 | 0
| 已接受
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...
13 days 前 | 0
| 已接受
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...
14 days 前 | 2
| 已接受
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...
15 days 前 | 0
| 已接受
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 ...
15 days 前 | 0
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 ...
17 days 前 | 0
| 已接受
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...
18 days 前 | 0
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...
19 days 前 | 0
| 已接受
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 .*...
19 days 前 | 1
| 已接受
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...
21 days 前 | 0
| 已接受
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...
23 days 前 | 0
| 已接受
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...
27 days 前 | 1
| 已接受
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...
1 month 前 | 0
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...
1 month 前 | 0
Is it possible to use format long in one line of code and then use format short in another line of code on the same script?
% Long format for pi format long pi_long = pi disp(['Long format: ', num2str(pi_long)]) % Short format for other values f...
1 month 前 | 0
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...
1 month 前 | 0
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 ...
1 month 前 | 2
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...
2 months 前 | 0
| 已接受
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...
2 months 前 | 1
| 已接受
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...
2 months 前 | 0
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 ...
2 months 前 | 1
how to access matlab remotely?
Hi Suyong, Check this MATLAB Answers to know how answer to your query: how to use matlab remotly - MATLAB Answers - MATLAB Ce...
2 months 前 | 1
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...
2 months 前 | 0
| 已接受
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...
2 months 前 | 0
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...
2 months 前 | 0
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...
2 months 前 | 1
| 已接受
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...
2 months 前 | 0
| 已接受