Answered
hi I have problem do not draw curve
w=2*pi*50; E=5; l=100e-6; c=200e-6; R=10; t=0:0.01:300; s=l/R; T=2*pi*sqrt(l*c); q=1/c*w; v=(tan((l*w-q)/R))^-1; g=E.*...

7 years ago | 0

| accepted

Answered
Function gram "Not enough input arguments"
Note: In case if you didn't notice there is already a function named gram() so rename your function. Final_result = gram(T,'po...

7 years ago | 0

| accepted

Answered
How can I plot multiple lines on the graph?
hold on % after the first plot command

7 years ago | 2

| accepted

Answered
how can i account for the last variable of a vector while comparing the n and (n+1) variables?
for i = 1:numel(v)-1 ^^---add it for general case

7 years ago | 0

Answered
How to add/append column in an array in a for loop?
simply without loop: Batt=repmat(25,1,sum(n_EVs)) %or Batt=repelem(25,1,sum(n_EVs)) %or Batt(1:5)=25; If you want to stick...

7 years ago | 0

Answered
"Error using - Matrix dimensions must agree." how can I calculate the value when using vector variables?
Either you should be using bsxfun or declare variables using sym . If neither of those work attach your eulersis function and th...

7 years ago | 1

| accepted

Answered
I have a .mat file that is a (1 x 1) struct with 3 fields and every fields is a (54057 x 2) double array. How i can plot this structure?
https://www.mathworks.com/help/matlab/ref/structfun.html#mw_a6093984-ffb6-4ca4-a430-a37e3146e131 https://www.mathworks.com/hel...

7 years ago | 0

Answered
Where can i find waveletScattering function used in matlab?
https://www.mathworks.com/help/wavelet/ref/waveletscattering.html#mw_a0dd2386-66f5-4c0b-b96d-7ae0ba327cd1_seealso - Introduced i...

7 years ago | 0

| accepted

Answered
Hi, I am trying to plot the following equation. Its showing error in mod function. Kindly clarify me how to use the mod function to get the proper output.
It should be abs instead of mod (assuming that you want to convert the negative sign to positive sign ? ) theta=0:10:90; % Not...

7 years ago | 1

| accepted

Answered
how to read data from columns of excel sheets fast or once complete and not, accessing cell by cell?
Try using readtable() to read your file by suppressing the output with semicolon ; and directly plotting after.

7 years ago | 0

Answered
My program run forever !
Just download the file exchange below and adapt it to your need :https://www.mathworks.com/matlabcentral/fileexchange/29851-rung...

7 years ago | 1

Answered
someone help me plzzz :(
syms x y; f(x) = (2.*x-1).*sin(pi.*x); y=zeros(1,25); for i=1:25 y(i)=diff(f(x),i); end fun=matlabFunction(y.'); x=-2...

7 years ago | 0

| accepted

Answered
How do you left or right justify matrix columns?
fliplr()

7 years ago | 0

| accepted

Answered
Histogram x axis range
h=histogram('BinEdges',edges,'BinCounts',20) h.BinLimits=[0 1] % x-axis range

7 years ago | 0

Answered
Taylor expansion with 2 variables
https://www.mathworks.com/help/symbolic/taylor.html#busoy0k-1

7 years ago | 1

| accepted

Answered
Undefined function for input arguments of type 'double' - fit function
What does the below show? which fit -all whos fit

7 years ago | 1

Answered
How to extract values from 1x1 cell array
Just use readtable() to read the file

7 years ago | 1

| accepted

Answered
i don't know how to fix it Help me :(
No loops needed: syms x; ee = 0.001; a = -2; b = 1; f(x) = (2.*x-1).*sin(pi.*x); Pn10(x) = taylor(f,'order',10); xMin = a...

7 years ago | 0

| accepted

Answered
How to solve system of equations in Matlab R2018b
syms W13sol W14sol W20sol W15=6; % an example of datas W12=8; tau01=9; tau02=10; tau03=11; eqtau01=((W14sol-W20sol)/(W1...

7 years ago | 0

| accepted

Answered
someone help me to fix plzzz
Remove the first two lines and place f part after defining x. OR Do the following: syms x real f(x)=(2.*x+1).*exp(-x.^2); x...

7 years ago | 1

| accepted

Answered
How To Read Procedure From File?
ADDENDUM to dpb's comment : "Care to share just why you think the syntax is wrong?" See https://www.mathworks.com/matlabcentra...

7 years ago | 0

Answered
How to repeat subjects label by simplify way?
compose("NB%d",1:10) % edited after Guillaume’s comment

7 years ago | 0

| accepted

Answered
Trying To Put Code In A File
Turns out that you are using MUPAD (to use it type MUPAD in command window) it's different from MATLAB so basically it's (your c...

7 years ago | 1

Answered
Read excel files one at a time, execute calculations, and export results
Processing sequence of files

7 years ago | 0

Answered
error running the code in while command in bisection method
umerfunction=@(x)x.^3; Note: Also your loop is infinite loop since each time the condition will be satisfied either you need t...

7 years ago | 0

| accepted

Answered
Writing structure type variable to excel file after passing it throught struct2table failes.
Download the below file exchange to achieve what you want: https://www.mathworks.com/matlabcentral/fileexchange/22510-struc2xls...

7 years ago | 0

Answered
How to create a function that lets me choose the output (euler,Rk2 or Rk4)?
https://www.mathworks.com/help/matlab/ref/varargout.html

7 years ago | 0

Answered
send me activation key
Please remove the license number since it's shared in a public forum , it's better you contact the mathworks support team by cli...

7 years ago | 0

Answered
why is it happen?
"why is it happen?" Obviously you have used the same linestyle inside the loop use the below way to distinguish: c={'-*m','-^k...

7 years ago | 0

Load more