Answered
How to read The value shown for R in 10^n
Your r, p are 2*1 double arrays. Type: whose r p If you want to extract each element, you can by using r(1) r(2) p(1) p...

4 years ago | 0

Answered
Plotting of solutions using Newton Raphson method for a nonlinear function
Refer this: https://in.mathworks.com/matlabcentral/answers/107508-solving-a-nonlinear-equation-using-newton-raphson-method SEa...

4 years ago | 0

Answered
The code doesn't generate a graph. Please tell where I am doing wrong.
You have to use a marker, as you are plotting point by point. x = 1; for n = 1:30 y = (7259/14520)*x + 167/2420 plot...

4 years ago | 1

Answered
How to find the coordinates of gauss points for stress plot??
Have a look on this: https://in.mathworks.com/matlabcentral/fileexchange/32519-stress-recovery?s_tid=srchtitle

4 years ago | 0

Answered
I want to convert a single cell to a float number
celltest = {23.234,123.45}; class(celltest{1}) If it is double, nothing need to be done. If it is a string, read about str2nu...

4 years ago | 0

Answered
How to convert datetime into a number?
dt = datestr(now,'yyyymmddHHMMSS')

4 years ago | 0

Answered
Opening a netcdf variable
How to access the SIF_743 product Read about ncread. 2. i want to plot the lat long and z parameter as SIF. which commands sh...

4 years ago | 0

Answered
converting from symbolic to numerical
Read about double, vpasolve.

4 years ago | 1

| accepted

Answered
How to plot surface temperature values in a map
Read about geoscatter.

4 years ago | 0

Answered
Not enough input arguments.
It seems, you are striaght away running the code using run/ F5 key. Save your code into function, with the name mQAM.m, go th...

4 years ago | 0

Answered
Numerical precision when using colon operator
You cannot use ismember for floating point numbers. If you want to have values at time2, you can use interp1. Read about interp1...

4 years ago | 0

| accepted

Answered
how to plot a vector?
x = linspace(-1,1) ; y = linspace(-1,1) ; [X,Y] = meshgrid(x,y) ; % F = e^y i + x*e^y j u = exp(Y) ; v = X.*exp(Y) ; q...

4 years ago | 0

Answered
How to do post processing for stresses in MATLAB?
It is very much possible. Refer to this file exchange functions: https://in.mathworks.com/matlabcentral/fileexchange/32719-post...

4 years ago | 0

Answered
How do I draw a contour plot for f(x, y)=(2*x^2 + 3*y^2)*e^(−x^2−y^2) . that encompasses the critical points (0, 0) and (0, 1)?
m = 100 ; n = 100 ; x = linspace(-1,1,m) ; y = linspace(-1,1,n) ; [X,Y] = meshgrid(x,y) ; F = (2*X.^2 + 3*Y.^2).*exp(-X...

4 years ago | 1

| accepted

Answered
Random inputs for a logic array?
function [averageScores, deviationScores, medianScores, modeScores, partyDecision] = PizzaParty(scores) averageScores=mean(s...

4 years ago | 0

| accepted

Answered
Assemble the generated graph
You can do interpolation and join the jumps. Have a look on interp1. Also read about fillmissing.

4 years ago | 0

Answered
Compare a string against list of other strings
data_rate = '288'; % user input permissible_rates = {'128';'256';'512'}; % validate input against this idx = contains(permissi...

4 years ago | 0

Answered
How do i make this form with matrix ?
A = work5() ; function A=work5() m=1; for k=10:10:160 n=1:k; a= sum(nthroot(n.^2,5)./((3.^n).*(n+1))); A(...

4 years ago | 0

Answered
how do i print this matrix?
A = zeros(6,5) ; A(1:3,1:3) = 1 ; A(:,4) = [1 0 0 1 1 1]' ; A(:,5) = [1 0 0 1 1 1]' ; A

4 years ago | 0

| accepted

Answered
How do i add a zeroes in every raws?
A = [1:2:7; 4:2:10; 9:-2:3] ; iwant = [zeros(3,2) A]

4 years ago | 0

| accepted

Answered
Change the data field type in my shapefile
If you change the data, you need to write into shapefile again using shapewrite to hold the changes.

4 years ago | 0

Answered
plot contours for pressure on surface points defined by z,y and z corrdinates
Refer this: https://in.mathworks.com/matlabcentral/answers/412639-creating-surface-plot-from-a-matrix-with-3-columns

4 years ago | 0

Answered
Extract row values from text file to add
REad about the function load, it will load text file data into workspace; then use you formula on the arrays.

4 years ago | 0

Answered
I want to know x,y coordinate
Already you have the code. t=0:0.01:10 ; x=t.^3+t ; y=t.^2+2.*t.^3 ; plot(x,y)

4 years ago | 0

Answered
How can i find specific data from a large no. of csv file?
T = readtable('Data.csv') ; csvFiles = dir('*.csv') ; % otherfiles in a folder. Keep Data.csv seperatly N = length(csvFile...

4 years ago | 0

Answered
plot circules with with radius and random locations on 10x10 square area
You can plot circle using: th = linspace(0,2*pi) ; R = 1; % radius C = [0 0] ; % center x = C(1) + R*cos(th) ; y = C...

4 years ago | 1

| accepted

Answered
The meaning of code on this program
You shoould run the code o understand it your self. What is purpose of this code and why it is used on this program ? The pur...

4 years ago | 0

| accepted

Answered
Add geographic data to pcolor plot
hold on load coast.mat plot(long,lat,'k')

4 years ago | 0

| accepted

Answered
How to do surface plot from given set of data?
T = readtable('data.txt') ; x = T.(1) ; y = T.(2) ; z = T.(3) ; % Plot as unstructured grid dt = delaunayTriangulation(x,y...

4 years ago | 0

| accepted

Answered
How to plot a jet colour bar for specific values ?
This line: cm = colormap(jet(numel(r))); You are limiting the colorbar to only six colors. So you are getting the colorbar a...

4 years ago | 0

Load more