Answered
How to use %s
saveas(gcf,sprintf('x%d.jpeg',j));

7 years ago | 0

| accepted

Answered
How can i find this value x at the below expression
There exists a value of x such that the whole equation is equal to zero in each interval. Why do you say 20? syms x invx=tan(...

7 years ago | 0

Answered
collapse across dimensions of a matrix
doc permute

7 years ago | 0

Answered
Matlab not squaring imaginary part of complex number.
Explanation given about the warning: https://www.mathworks.com/matlabcentral/answers/96197-why-do-i-get-warning-messages-about-...

7 years ago | 0

Answered
Sort table by two columns using column name
Another possible solution: sortrows(yourtable,[yourtable{:,1} yourtable{:,2}])

7 years ago | 0

Answered
I feel like I'm missing something obvious, but there is an issue with the sin() involving the array indices. Can someone please help?
Try clear all at the very beginning and try again , it clearly shows that you have a variable named sin Note: don't name a vari...

7 years ago | 1

| accepted

Answered
how to prevent cut-off of upper x-axis label
https://www.mathworks.com/matlabcentral/answers/30121-how-to-plot-the-xticklabel-on-the-top-of-the-axes#answer_38586

7 years ago | 1

Answered
How to plot convolution of 2 functions
syms t y1=3*t+5; y2=4*t^2+1; fplot(y1*y2) %edit after Brunos suggestion it’s not possible to represent the convolution for t...

7 years ago | 1

| accepted

Answered
Contributors metainfo: reputation and more
Congratulations Star Strider for reaching 30000 reputation points!!

7 years ago | 1

Answered
Is there a matlab equivalent function for the MuPAD function 'type', that returns the type of function of a symbolic object, such as '_plus', '_power' and '_product'?
I can only think of the contemporary functions like https://www.mathworks.com/help/symbolic/collect.html https://www.mathwork...

7 years ago | 0

Answered
R2018b gscatter marker issue
My default is also a circle , if you want you can edit the default marker as such: edit gscatter % change the marker (i.e. whe...

7 years ago | 0

Answered
Calculate unique number for each type
u=unique(X); Y=[u histc(X,u)]

7 years ago | 1

Answered
Why is this not working? And how to fix?
x1v= double(results2.x1) ^--2 missed x2v= double(results2.x2) ^--2 missed

7 years ago | 1

| accepted

Answered
How to double integrate a function in which two inner integrals have their limits in terms of outer variables?
int(int(...)) ^-----your function OR integral2(...)

7 years ago | 0

Answered
a question of assigning the list elements
why? the below works because the right side should be a symbolic object to perform the operation you need syms m(k) m(k)=k sy...

7 years ago | 0

Answered
writing title on images
A bold guess: srcFiles = dir('F:\the source\*.mim'); S=cell(1,length(srcFiles)); for i = 1 : length(srcFiles) filename = s...

7 years ago | 0

Answered
Where do I have to tell if I found some error in the Help section?
Contact the mathworks support team by clicking the Contact Us button on the top right corner of this page.

7 years ago | 0

| accepted

Answered
Solving system of equations with parameters
Like sir Walter says I think you should be using ode solvers to solve the problem because it clearly is a system of odes: tspan...

7 years ago | 0

| accepted

Answered
Avoid for loop?
y=hankel((1:4),(4:9))' Gives: y = 1 2 3 4 2 3 4 5 3 4 5 6 4 ...

7 years ago | 0

| accepted

Answered
About MATLAB editor.
https://in.mathworks.com/matlabcentral/answers/51902-what-setting-do-i-change-so-that-all-files-opened-in-the-editor-are-accesse...

7 years ago | 0

| accepted

Answered
R2019a release notes
After googling turns out that 2019a pre-release notes are not available yet.

7 years ago | 0

Answered
Problem with plotting X @(theta)
str2double() % to convert string to double and then plot

7 years ago | 0

Answered
How ı plot the piecewise function
Another possible approach: A = 2; t1=2; t2=6; syms t f = piecewise(t>t1 & t<t2,A,0) ; fplot(f,[0 10]) % 0...

7 years ago | 0

Answered
Solve a sytem of ODE
L=5; lambda=2; K=5; tspan=[0 1]; initial_condition=[0;0]; [t,x]=ode45(@(t,x)myod(t,x,L,lambda,K),tspan,initial_condition); ...

7 years ago | 0

| accepted

Answered
Matlab 2014b bug: Warning: Matrix is singular to working precision.
I wasn't able to produce it in 2018b ph = 1.0e-06 * 0.4905 0.3451 0.3451 0.2428 >> inv(ph) ans = ...

7 years ago | 0

Answered
How to control appearance of certain graphs legend in a multi graph plot?
Comment reposted as answer: x=rand(10,5); y=rand(10,5); z=rand(10,5); h=cell(1,5); c={'a','b','c','d','e'}; for i = 1:5 ...

7 years ago | 0

Answered
how can we build a polynomial expresstion (with 2 variables)
https://in.mathworks.com/matlabcentral/answers/279992-double-sum-of-a-series

7 years ago | 0

Answered
How to obtain next/previous node in a tour represented as an array (=permutation of size n)
Note: your prev should be 2 not 6 maybe you made a typo. tour = [1 8 9 7 4 5 2 10 6 3]; Next = nextNode(tour,2) Next2 = nextN...

7 years ago | 0

| accepted

Answered
I cant put the loop output in a matrix format. I want to put the loop output (p) as a vector or matrix in order to plot all the outputs later.
h=0.01; dpdt= @(t,p) (kmax)*(1/(K+(1/p))); % define K and Kmax where is t here? t=0:h:100; p=zeros(1,numel(t)); p(1)=0.5;...

7 years ago | 0

| accepted

Load more