Answered
safe multiple plots in one pdf
create multiple figures?

8 years ago | 0

| accepted

Answered
Why is nothing coming up on my plot?
*no need of loop* x = -5:0.01:5; y =ones(1,numel(x)).*(-10); y(x<=-1)=20; y((x > -1 & x <= 1) | (x > 3 & x <= 4))...

8 years ago | 0

Answered
how can i make scroll bar in gui graph
<https://www.mathworks.com/matlabcentral/answers/97964-how-can-i-use-scrollbars-in-matlab-figure-windows-when-viewing-large-guis...

8 years ago | 0

Answered
Test Sequence is executing but test harness is not executing?
<https://www.mathworks.com/matlabcentral/answers/374673-how-can-i-synchronize-my-model-with-my-test-harnesses-so-that-changes-ma...

8 years ago | 0

Answered
Vectors must be the same length (leslie matrix)
fprintf('Adult Dominant Equilibrium Structure \n') fprintf('Fecundity Eigenvalue Calves Yearlings Adult...

8 years ago | 0

| accepted

Answered
Program to approximate e^x using the Taylor Series
might help: <https://www.mathworks.com/matlabcentral/answers/410372-i-need-help-with-a-taylor-series-approximation-of-e-x#ans...

8 years ago | 0

Answered
I have a problem with the nested function.
*Multiple functions way:* x1=input('Enter the x coordinate of the first point '); y1=input('Enter the y coordinate of ...

8 years ago | 0

| accepted

Answered
Error using cellstr.
see <https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html#responsive_offcanvas *Processing seque...

8 years ago | 0

| accepted

Answered
Matlab won't start
<https://www.mathworks.com/matlabcentral/answers/97167-why-will-matlab-not-start-up-properly-on-my-windows-based-system#answer_1...

8 years ago | 0

Answered
can i plot one image on another in matlab? the second plot will come on a specific place of first plot?
<https://www.mathworks.com/help/matlab/ref/subplot.html *subplot()*>?

8 years ago | 0

Answered
Convert loop to vectorization
A=[9;9;9]; c=[2;3;5]; b={(A-c)}; B=cell(1,length(c)); for i = 1:length(B) B{i}=repmat(b{:}(i),numel(c),1); ...

8 years ago | 1

| accepted

Answered
Need the row of an array that gives minimum value if we sum all the elements of the row in a matrix?
[~,xx]=min(s) TT(xx,:) %row for minimum value of s

8 years ago | 1

| accepted

Answered
How to display values of f(1) to f(10)?
f(1) =2; f(2) = 3; for i=3:1:10 f(i) = 3*(f(i-1)) + 4*(f(i-2)); end fprintf('f = %g\n',f(1:10)) TOTAL_SU...

8 years ago | 0

Answered
How can I get a plot legend to give a different value for every input file?
<https://www.mathworks.com/matlabcentral/answers/29799-adding-a-legend-and-different-coloured-lines-in-a-for-loop#answer_38176>

8 years ago | 0

Answered
How to interpolate based on given column
see <https://www.mathworks.com/help/matlab/ref/interp1.html *interp1()*> a=[0.2 0.8 1.0 1.3 0.8 ...

8 years ago | 1

Answered
How can I convert set of symbolic functions into function handle so that they can be used as input to ode45?
*EDITED* syms x(t) y(t) z(t) eq1 = diff(x,t) == -x+3*z; eq2 = diff(y,t) == -y+2*z; eq3 = diff(z,t) == x^2-2*z; ...

8 years ago | 0

| accepted

Answered
is it possible to input two variable values while loading a function from commend menu?
[n m]=size(y) %change this dlmwrite(c,matrix,'delimiter ','|') %change this Put w8ass7p4(y) %y should be ...

8 years ago | 0

Answered
How to write a fucntion which we don't know how many "in" values will be needed?
<https://www.mathworks.com/help/matlab/ref/varargin.html>

8 years ago | 2

| accepted

Answered
How to write a matrix to a new text file after each change
see <https://www.mathworks.com/help/matlab/ref/dlmwrite.html#btzn9t5-1 *dlmwrite()*>

8 years ago | 0

Answered
how can i interpolate vector of n-dimensions?
a=[1 2 3] b=[1.1 2.1 3.1] aa=linspace(1,3,1000) bb=interp1(a,b,aa)

8 years ago | 0

Answered
Why am I returning NaN with str2double?
x = '3' x = str2double(x)

8 years ago | 0

Answered
how to copy first column form any array to contain other array
A{1,100} %PRE-ALLOCATION for i = 1:100 A(:,i)=array(:,i); end A

8 years ago | 0

Answered
If i have array defined as G=(83 27 125 99 0 25 255 ..... ) .Is there any command or code to find S as defined below ?
G= [83 27 125 99 0 25 255] S(G,27) %function calling function S(G,n) RESULT=find(ismemb...

8 years ago | 0

Answered
How to convert symbolic expression to a Matlab function f.m?
A = f(3,5,2) %calling of function 3 represent value of p , 5 represents value of r and 2 represents value of q f...

8 years ago | 0

Answered
How to run script iteratively
clc; clear; close all; format long Ma=.84 Ra=.287 Rg=.287 siga=1.4 ...

8 years ago | 0

| accepted

Answered
Remove elements > 0 and < -1 from an array and replace them by 0
load data.mat offsetfromPPT(offsetfromPPT<-1 | offsetfromPPT>0)=0 max(max(offsetfromPPT)) %if it is zero min(min...

8 years ago | 0

| accepted

Answered
I have a matrix which looks like A = [1 NaN 1 ; NaN 1 2; NaN 1 2]; How can I remove all NaN's from the A matrix?
A = [1 NaN 1 ; NaN 1 2; NaN 1 2]; A(isnan(A))=[] ; A = reshape(A,3,2) *command window:* >> COMMUNITY ...

8 years ago | 0

| accepted

Answered
How do I create and call a function which returns the sum of the series (2n)*r^(2n+1), prompting the user for values r and n?
no need loop for this: r=input('Enter real number r: '); n=input('Enter real number n: '); S = funser(r,n) ...

8 years ago | 0

| accepted

Answered
how to do plotting polynomial( 2x^-2+1) this x with power of -1 . how to do in mathlab?
syms x %x with power -1 fplot(2*x^(-1)+1)

8 years ago | 0

| accepted

Load more