Answered
How do i plot this rect function and unit step function into matlab?
See <https://www.mathworks.com/help/symbolic/rectangularpulse.html *rectangularpulse*> and <https://www.mathworks.com/help/symbo...

8 years ago | 0

Answered
Error using plot Vectors must be the same length?
Note at the end : size(u) and size(p) have to have the same dimensions in order to plot them. So try: plot(u,p(1:nume...

8 years ago | 0

| accepted

Answered
extracting field name and values from a struct.
See <https://www.mathworks.com/help/matlab/ref/getfield.html *getfield()*> might be the one you’re looking for.

8 years ago | 0

Answered
error -- name does not match in license file.
Might help: <https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9#answer_108414> ...

8 years ago | 0

Answered
Gap between symbol and text in the legend
There is no line in the legend because each points plotted are unique and doesn’t tend to be an array . If you plot between vec...

8 years ago | 0

Answered
how to change the color of a 2-D line on plot graph
plot(x,r,'r') %plots red line plot(x,r,'b') %plots blue line

8 years ago | 0

Answered
Search columns of a matrix
min(matrix) % will return the minimum value in each column Where matrix is the matrix which contains test scores

8 years ago | 1

| accepted

Answered
How can I plot my piece-wise function?
See <https://www.mathworks.com/help/matlab/ref/fplot.html *fplot()*> and <https://www.mathworks.com/help/symbolic/piecewise.html...

8 years ago | 0

Answered
multiple graphs for two or more functions for different values in different color
n=2; q=2:5 y1=0.5.*(q.^2.*n-5.*q.^n+(2.*q-1).^(n+3)) y2=0.5.*(q.^2.*n-7.*q.^n+2.*(2.*q-1).^(n+4)) ...

8 years ago | 0

| accepted

Answered
How to turn the surface plot?
Kraft=5:10:1470; Geschwindigkeit=32:150; nx = length(Kraft) ; ny = length(Geschwindigkeit) ; if nx > ny Geschwin...

8 years ago | 1

Answered
How to manipulate this matrix?
A= [0,0,0;0,2,3;1,2,3] Expected_A=[3,2,1;3,2,0;0,0,0] result=fliplr(flip(A,1)) %here is the manipulation log...

8 years ago | 1

| accepted

Answered
Convert cell to string
What happens when you do? cellstr()

8 years ago | 2

Answered
How to plot function using matlab?
syms x %requires symbolic toolbox f = 2 * x - 10 * sqrt ( x ) + 2 figure fplot(f,[0 5]) f1 = ( 0.5 * x * 4 + 1.1 * ...

8 years ago | 6

| accepted

Answered
How to plot this velocity profile?
clear all. %edited close all clc mu=0.5; t_o=100; t_e=200; n=15; lambda=0.25...

8 years ago | 0

Answered
mkdir with multiple subfolders that are variables
Might help : <https://www.mathworks.com/matlabcentral/answers/314480-can-matlab-create-subfolders-within-subfolders-programma...

8 years ago | 1

Answered
How to check the value of 1x2 char in an if condition ?
You can compare the char array by elements as such e(1,1) and e(1,2)

8 years ago | 0

| accepted

Answered
Error in code by Ken Deeley on "Exploring risk contagion using graph theory and Markov chains"
It’s better you contact the author of the code and clarify by the way matlab has an inbuilt function function . Type graph in yo...

8 years ago | 0

| accepted

Answered
How do i assign a random element of an array a new value
a=maze; a(randi([1,numel(a)],1,1))='p'

8 years ago | 0

Answered
How to label smooth spline graph?
P_load = [0,8000,10000,11000,20000,25000,25000,21000,30000,20000,12000,45000,12000,45000,23300,12000,15000,17000,20000,16000,1...

8 years ago | 1

| accepted

Answered
im trying to calculate average grades using matlab
Use mean() To calculate average

8 years ago | 0

Answered
studentライセンスの関連付け
<https://www.mathworks.com/matlabcentral/answers/180390-how-do-i-find-my-matlab-license-number#answer_169333>

8 years ago | 1

Answered
how to plotting all results when i using for loop
plot(T_cond,m_wf) hold on plot(T_cond,E_th) Should be inside loop

8 years ago | 0

Answered
how to open scripts in tabs not windows?
<https://www.mathworks.com/matlabcentral/answers/144273-new-script-keeps-opening-in-new-window-instead-of-a-tab#answer_147045>

8 years ago | 0

Answered
How to do mutation after cross over?
<https://www.mathworks.com/help/gads/vary-mutation-and-crossover.html>

8 years ago | 0

Answered
finding 2D curvature for a left ventricular plot
M =load('D:\Matlab\315 Big.txt'); r=4; Vertices=[sin(r) cos(r)]*10; Lines=[(1:size(Vertices,1))' (2:size(Vertices,1)+...

8 years ago | 0

Answered
Error every time I create a new plot
Try: >>clf;plot([1:10])

8 years ago | 0

Answered
How to plot smooth graph?
P_load = [0,8000,10000,11000,20000,25000,25000,21000,30000,20000,12000,45000,12000,45000,23300,12000,15000,17000,20000,16000,1...

8 years ago | 1

| accepted

Answered
Finding exponential curve and r-squared using polyfit
<https://www.mathworks.com/matlabcentral/answers/389849-least-squares-exponential-fit-using-polyfit#answer_311217> <https://w...

8 years ago | 0

Answered
Question about find function on matlab and
x0 = 4 %edited after sir Walter’s comment y0 = interp1(x,y_linear,x0) Now you will get the corresponding y value whe...

8 years ago | 0

Answered
How to I fix this Index error?
Change your lines to this : M=input('value of M? ') scores=randi([40,100],1,M); for i = 1:numel(scores)

8 years ago | 0

Load more