Answered
How to plot 4d surface with 4 column vectors?
See <https://www.mathworks.com/matlabcentral/answers/322086-create-4d-surface-plot-from-x-y-z-and-c-column-vectors#answer_252144...

8 years ago | 0

Answered
How can I change the line color in a graph using plot?
plot(x,y,'r') %r refers to red color See <https://www.mathworks.com/help/matlab/ref/colorspec.html *colors*> to know how ma...

8 years ago | 1

| accepted

Answered
I'm trying to subtract the day from the datetime
t = datetime('1-Oct-2016','Format','MMM-y') from *d-MMM-y* to *MMM-y* d - refers to day MMM - refers to mo...

8 years ago | 0

Answered
I'm having difficulty with incorporating the Windkessel Model equation into Matlab, and I would like to know how to tackle this problem.
e = 2.718; wind = (1/(e^(t/R(C))))*(Q/C)*((R(C)*(e^t/R(C))-R(C))-(5)*(t*(C)*(e^t/R(C))-(R^2)*(C^2)*(e^(t/R(C))))); ...

8 years ago | 0

Answered
writing trained neural network to .xml file
Download file exchange from <http://in.mathworks.com/matlabcentral/fileexchange/28639-struct2xml> And see <https://www.mat...

8 years ago | 0

Answered
Unable to read MAT-file E:\my_file.mat: not a binary MAT-file.
fid=fopen('A1.txt') f = textscan(fid,' %s ','Delimiter','','commentstyle','#') fclose(fid) celldisp(f)

8 years ago | 0

Answered
how to express vector in the form of a polynomial?
P= poly2sym(sym([0 0 7 7 0 0 1])) P = poly2sym(sym([7 0 0 7 7 0 0 1])) %this will show your desired result Remar...

8 years ago | 0

| accepted

Answered
describing code (for loop)
Xq is a vector , u is a scalar the loop runs from 1 to the number of elements of Xq number of iteration is displayed which...

8 years ago | 0

Answered
How can I squeeze a variable to have the same size or dimension?
see <https://in.mathworks.com/matlabcentral/answers/6560-how-does-squeeze-work#answer_9053>

8 years ago | 0

Answered
How to convert image to array and save it in a text file?
dlmwrite('FileName.txt',image)

8 years ago | 1

| accepted

Answered
I am writing "function y = scmaenc(x, CB, h)" in MATLAB2017a and getting ↑ Error: Function definitions are not permitted in this context. can anyone explain?
y = scmaenc(x, CB, h) %call the function properly you can't run scmaenc.m by clicking the green button because your functi...

8 years ago | 0

Answered
Transform column data to m x n matrix
[num,txt,raw]=xlsread('DataTransformation.xlsx') [m,n]=size(num) num(isnan(num))=[] data=reshape(num,m,n) %m and n ca...

8 years ago | 0

Answered
How to save a column into separate variables
A = [1 0 0 0 -3 0; 0 1 0 0 -1 0; 0 0 1 0 -1 0; 0 0 0 1 -3 0]; a=A(:,1) b=A...

8 years ago | 1

| accepted

Answered
How can I find Period of Signal
See <https://www.mathworks.com/matlabcentral/answers/386863-how-do-i-find-the-period-or-frequency-of-a-signal#answer_308851>

8 years ago | 2

Answered
can we use rtos in matlab?
Maybe this helps: <https://www.mathworks.com/matlabcentral/answers/99561-what-real-time-operating-systems-rtos-does-embedded-cod...

8 years ago | 0

Answered
Plotting functions with matrices
function [Om2, Pp] = GeneralizedEigenProblem(Kk,Mm); % Solves the generalized eigen problem (Kk - W^2 Mm) u = 0 % Input...

8 years ago | 0

Answered
How do i plot projectile motion given initial velocity, initial horizontal position, initial vertical position & angle of inclination?
see <https://in.mathworks.com/matlabcentral/answers/308853-how-do-i-create-a-projectile-motion-function-with-the-input-of-angle-...

8 years ago | 0

Answered
Write a MATLAB program that have p start at 1 and flip between 1 and 2 each time. USE A SINGLE LINE OF CODE TO FLIP THE VALUE.
Taken from <https://in.mathworks.com/matlabcentral/answers/63529-fliping-a-value-between-zero-and-one#answer_75137 *here*> ...

8 years ago | 0

Answered
How to generate a symmetric positive definite matrix?
See <https://www.mathworks.com/matlabcentral/answers/123643-how-to-create-a-symmetric-random-matrix#answer_131349> *<https:/...

8 years ago | 0

Answered
where i can get video tutorials related to non linear and multiobjective optimization using matlab optimization tool box
didn't this help you? <https://in.mathworks.com/products/optimization/videos.html>

8 years ago | 0

Answered
Can you run 2018 Matlab scripts in 2017 version?
You can use it but <https://in.mathworks.com/matlabcentral/answers/320834-can-i-open-a-file-with-different-versions-of-matlab#an...

8 years ago | 0

| accepted

Answered
Matlab crash after accidently assigning a counter variable from a loop as output argument of a function?
Finally resolved the error : <https://in.mathworks.com/matlabcentral/answers/311671-can-t-run-matlab-restoredefaultpath-not-w...

8 years ago | 0

| accepted

Answered
undefined function or variable workspacefunc
finally I resolved the error : <https://in.mathworks.com/matlabcentral/answers/311671-can-t-run-matlab-restoredefaultpath-not...

8 years ago | 1

| accepted

Answered
What should we do when Text exceeds maximum line length for Command Window display in matlab?
save the D matrix as a text file using: dlmwrite('D_matrix.txt',D) %assuming matrix D is contains doubles

8 years ago | 0

| accepted

Answered
How to assign a input number
function input_a_number number = input('enter a number : ') end or x = 10 data = cuberoot(x) ...

8 years ago | 0

Answered
How convert 3d matrix to 2d matrix?
An example: A=rand(1,100,100) reshape(A,100,100)

8 years ago | 3

| accepted

Answered
HOw to convert a variable to positive irrespictive of previous ?
abs() %gives you positive always which refers to absolute value

8 years ago | 1

| accepted

Answered
I want to know how to write a matlab function
sym(0.866025403784439) frac(ans)

8 years ago | 2

| accepted

Answered
Difference between the usage of sum functions
SUM1 is the right one. It calculates your resultant matrix’s sum But the latter calculates the sum o each matrices and doe...

8 years ago | 0

| accepted

Load more