Answered
How can I make my plot fill the entire figure window?
Perhaps https://www.mathworks.com/matlabcentral/answers/295974-how-can-i-make-the-plot-fill-the-entire-plotting-window#answer_22...

7 years ago | 0

Answered
Substituting an expression not giving intended result
syms c cbar sigma Phi A csol assumeAlso(sigma,'real') assumeAlso(sigma>0) phi(c,cbar,sigma)= (1/sqrt(2*sym(pi)*sigma^2))*exp(...

7 years ago | 0

Answered
Help splitting string using strsplit
str=';;;;;6;7;8'; expr=';'; C=str2double(regexp(str,expr,'split')) % edited after Jan’s comment %[~,c]=regexp(str,expr,'match...

7 years ago | 1

Answered
Finding the indices of duplicate maximum number of non zero element in matrix
EDITED Note: max only returns the index of the max value at the first instant so in order to find all the indices of max value ...

7 years ago | 1

| accepted

Answered
problem with function handle
EDITED syms z a=1; % an example datas b=2; p=3; alpha=(z-b)/a; qa=sqrt((1./(alpha.^2)-p.^2)); t = integral(matlabFunction...

7 years ago | 0

| accepted

Answered
can anyone please suggest me how to tackle this problem ? for matlab 2015a
Change your working path and try again.

7 years ago | 0

Answered
for 1:x with unkonw x
Don't think of naming variables dynamically (https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-shoul...

7 years ago | 1

| accepted

Answered
how to extract data from 2D graph?
https://www.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures#answer_110036 - save your graph...

7 years ago | 0

Answered
How to write 2 didgits after decimal in text figure like given below
a=['\Delta = ',sprintf('%.2f\n',(k1*100)),... 'S = ',sprintf('%.2f',(p1*100))]; text(800,0.3,a,... 'FontWeight','bold...

7 years ago | 0

| accepted

Answered
How can I make an array of sin(1), sin(2), ... , sin(100)?
x=1:100; y=sin(sym(x))

7 years ago | 0

Answered
Undefined operator '==' for input arguments of type 'cell'?
P=vertcat(P{:}); % double array %% uncomment this line

7 years ago | 0

Answered
How to access global variable inside function. Note that I am using octave. the value of variable 'a' changes continuously. I'm getting syntax error >>> global m(1,1) = a;
https://www.mathworks.com/matlabcentral/answers/437732-error-using-ofdm_mod-not-enough-input-arguments#answer_354468 - how to u...

7 years ago | 0

Answered
how do i solve for 't' ?
I think there is no solution : syms t eqn1 = matlabFunction(380.0 - 379.69109947074029287421462846085*exp(-1000842.10526315789...

7 years ago | 0

Answered
i want load csv data which contains text in its cell
Use readtable() to read the file

7 years ago | 1

| accepted

Answered
How to find NaN in a cell of type table then delete the entire row
Try the below example: Age = [38;43;38;40;49]; Smoker = logical([1;0;1;0;1]); Height = [71;69;64;67;64]; Weight = [176;163;1...

7 years ago | 0

| accepted

Answered
The following code is not working....cant reduce it to integral 3
It‘s just a guess just change all your upper limits to 1 meaning change all inf to 1 you will get inbetween 0 and 1

7 years ago | 0

| accepted

Answered
The following program involving double integration hangs...Tried everything in R2014a
Lookup integral3() : syms x y z; f1=(0.6*dirac(x-0.01)+0.4*(x-100)); f2=(0.6*dirac(y-0.01)+0.4*(y-100)); intfn=((1-(1/(1+(2...

7 years ago | 0

| accepted

Answered
How I can create a three dimensional succession
N=numel(freq); f=zeros(1,1,N); f(:,:,:)=freq

7 years ago | 0

Answered
Why is my plot not showing any line?
You don’t need a loop , just remove for i=1:5 and end

7 years ago | 0

Answered
Variable not recognized after program restart
diff recognises symbolic x but not as a function handle See https://www.mathworks.com/matlabcentral/answers/438016-undefined-fu...

7 years ago | 0

| accepted

Answered
dot indexing is not supported for this variable .
See if the below does what you want(else let know of your final result size expected), also suspect loop is not needed to achiev...

7 years ago | 0

Answered
Hello, i want to display separate (side by side) bar on one graph. below is my code but its display bars on single column.
I am not sure what your doing but perhaps you want to use subplot()

7 years ago | 0

| accepted

Answered
how do i assign an array to i?
Don't think of naming variables dynamically (https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-shoul...

7 years ago | 0

| accepted

Answered
how to find out how many times a number apears in a 2D matrix ? which function to use?
n=2; % number to be tested nnz(ismember(x,n))

7 years ago | 0

| accepted

Answered
Scatter (x y sz) error, my size values are not numerical vectors?
COG=readtable('sample.txt') ; % .txt or .x;s according to the file you have scatter(COG.X,COG.Z,COG.Mass) % suspect it shoud be...

7 years ago | 0

Answered
Estimating a function in matlab using different values of parameters froma matrix/dataset
solve is a part of symbolic math toolbox so the variables have to be defined as of symbolic class so remove @(x) and define it a...

7 years ago | 0

Answered
Solve system of differential equations with embedded non differential equation
tSpan=[.01 30]; initial=[.01; .01; .01; .01; 68e3];%initial gues for x(0),ax(0),y(0),ay(0),m(0)and alpha(0) ^^^^^^^^^...

7 years ago | 0

| accepted

Answered
Loading indexed .mat files using a for loop
Forgot the square brackets [ ] and commas , : E = load(['E',num2str(i),'.mat']); T = load(['T',num2str(i),'.mat']); Alte...

7 years ago | 1

| accepted

Answered
Solving 2nd order differential equation using ode45
Reason: Because there is division by 0 therefore nans are encountered. [t,x]=ode45(@fun,[0.00001 30],[0.00001 0.00001]) func...

7 years ago | 0

| accepted

Load more