已回答
Roots of a 4th degree polynomial and plotting a graph
Define the polynomial as a Function Handle of the variable 'k' and use roots for different values of 'k'. Yes, you can plot t...

7 months 前 | 0

已回答
Can I customize the display format?
"Is there any way to customize the display format in the command window beyond the exisisting options for format?" No. Thoug...

7 months 前 | 0

| 已接受

已回答
A question about list folder contents with dir
This notation is used in filesystems (and anywhere they are implemented/used) - . refers to the current directory/folder. .. ...

7 months 前 | 0

| 已接受

已回答
Simplifying for-find loop functions to speed up processing
I assume r, c and v have the same number of rows - %Check which rows from the given range in mD have more than 3 values greate...

7 months 前 | 1

| 已接受

已回答
Can someone helps me to solve the error in this code?
There are missing operators at many places in your code, e.g. - % vv vv ia = (10^-7)(exp(-(Eexc/R)((1/T...

7 months 前 | 0

已回答
Stop Matlab from reopening sessions
Yes, follow these steps - HOME -> Preferences -> Editor/Debugger -> Opening files in editor In that section, Untick the option ...

7 months 前 | 0

| 已接受

已回答
Warning: Escaped character '\U' is not valid. See 'doc sprintf' for supported special characters. Warning: Error updating ConstantLine. Execution of script mean as a functi
Given the warning message - I suspect that you have a overloaded the mean() function by naming a user-defined script as mean. ...

7 months 前 | 1

已回答
How to turn off text highlighting/ variable usage counting in 2023a
You can turn off the highlights by pressing "Ctrl + Shift + H". But when you will do so, the message at bottom left will say - ...

7 months 前 | 0

已回答
Import XLSX in MATLAB using input() and xlsread()?
You should use the more robust readmatrix or readtable. There is no need for using input(). Directly specify the filename to th...

7 months 前 | 0

| 已接受

已回答
Trying to plot the output of a function where h is a range over 10^-1 to 10^-18
We can take advantage of the vectorization here - AD = absolutediff(2.5) function AD = absolutediff(x0) %Function defi...

7 months 前 | 0

已回答
Calling a function in the command window
When you define a function inside a script, it is only accessible within the script. From this documentation page Local funct...

7 months 前 | 3

已回答
Extraction based on the array indices
Use logical indexing - Find Array Elements That Meet a Condition

7 months 前 | 0

| 已接受

已回答
Different results by or(A,B) and xor(A,B) for matrices, why?
Why do you expect 2 different operators (and 2 different functions for that matter) to give the same result? From the respect...

7 months 前 | 0

| 已接受

已回答
offset on y-axis
If you are using R2018b or a later version, utilize stackedplot.

7 months 前 | 0

已回答
With ischar usage - I get two different answers
"Why is that?" Because a character array (char) and a string array (string) are different. They are both different data types f...

7 months 前 | 2

已回答
while iam trying to execute my code iam getting error
Numeric arrays in MATLAB are homogenous. When you initialize h(1) as a double array, then any elements to be added to it are e...

7 months 前 | 0

已回答
How to write an exponent in an axis label when the matlab syntax doesn't work?
Try this - t = -5:.01:5; x = exp(t/10); figure(1) scatter(x,t,24,'filled') xlabel('t') ylabel('e^{(t/10)}')

7 months 前 | 1

已回答
how to change zero in series number
Assuming the last element is not zero - in = [0 2 3 5 1 6 0 0 3 4 7 2 0 6 2].'; idx = in==0; while any(idx) in(idx) =...

7 months 前 | 1

已回答
reverse operation to 'strsplit'
Use strjoin

7 months 前 | 0

| 已接受

已回答
Create Subparts in one problem on MATLAB grader
Yes, in addition to tests provided by the MATLAB Grader, you can include your custom assessments. See the documentation for > F...

7 months 前 | 0

已回答
calculate the perimeter of a polygon arranged in space
I am not sure what the idea behind that method is, but it does not give the correct result - load plane_new figure x = plane...

7 months 前 | 0

| 已接受

已回答
Code for Delay differential analytical Solution. Its showing error. Please correct it. Kindly do the Needful.
There is missing operator between k and the left parenthesis as shown below - Fix it and the code will work. t=linspace(0,120...

7 months 前 | 0

已回答
Setting a textbox returning error 'Unable to resolve the name'
The function does not know what "S" is. You need to pass it as an input. And the font name 'Comic Sans MS' does not have ellips...

7 months 前 | 0

已回答
Using "if" and "disp" in a comparison of two numbers
You need to use the elseif condition. Refer to the documentation for more info - if, elseif, else a=5;%input("Give a value f...

7 months 前 | 0

| 已接受

已回答
Grab 20 lines and make a graph
"Can anyone tell me?" I assume you wanted to ask why that happens. You have provided a matrix as the single input to plot. ...

7 months 前 | 0

已回答
Relative pose in 2D: problem 1
Given that the frame of reference is a cartesian co-ordinate system, the angle is supposed/expected to be calculated w.r.t x-axi...

7 months 前 | 0

| 已接受

已回答
Where is the month, day and year string stored in a plot with a datetime axis which shows hours and minutes in the xticklabel string?
The data is stored as the x-tick values. They can be edited, but not all properties can be changed. One option to specify form...

7 months 前 | 0

已回答
Error using fopen for obj file
You should try these functions instead of fopen - https://in.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-tool...

7 months 前 | 1

已回答
How to plot these figures into a graph with tons of data
Assuming that you want to plot using the values in the 1st column as x-values - Firstly, you would need to convert the 1st colu...

7 months 前 | 0

已回答
Obtaining max value from cyclic data
For each cycle, finding the maximum of the temperatures corresponding to the step == 3; %Read the data T = readtable('Referenc...

7 months 前 | 0

| 已接受

加载更多