Answered
How do I obtain a scatter plot of the vegetation optical depth (VOD) data in MATLAB?
Let X,Y be our lon and lat data; Z be your VOD data matrix. pcolor(X,Y,Z) colormap(jet) shading interp colorbar

3 years ago | 0

| accepted

Answered
Represent a vector as ± form
v1 = [86 90 87 89 88]; iwant = [v1-2;v1+2] % first row is v1+2 and second row is v1-2

3 years ago | 0

Answered
Unrecognized function or variable 'gammatonegram'. Any reason why this is happening?
It is not a inbuil function. You need to provide the function. A quick google lead me to this link: https://github.com/MuSAELa...

3 years ago | 1

| accepted

Answered
HOW TO CONVERT FORTRAN CODE TO MATLAB?
The code says it LU decomposition. SEarch in google and file exchange you will get many codesw riteen and submitted. https://i...

3 years ago | 0

| accepted

Answered
How to write data to text file with the same space before and after values?
You need to proceed like shown below. A = rand(4) ;% Demo matrix [mrows, ncols] = size(A) ; fmt = [repmat('%f ', 1, ncols) '...

3 years ago | 1

| accepted

Answered
how i can plot orbit of vibration of a rotating shaft with its center
x1=BD(1:10000,1 ) % the vibration vector readings in x direction y1=BD(10001:20000,2) % the vibration vector reading...

3 years ago | 0

Answered
How to use quiver correctly?
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1147075/quiver_input.csv') ; WDate = datenum(T.(1)...

3 years ago | 1

Answered
time series comparison and grouping similarly behaving time series
REad about plotregression

3 years ago | 1

Answered
Plotting a bird using mathematical equation issue.
You need to modify the radius Rk so that, it gives the look. clear; close all; clc; A =@(k) sin((pi*k)./20000); B =@(k) cos((...

3 years ago | 0

| accepted

Answered
Graph not showing plots
If you want to use loop, you need to use a marker to show up the plot. clear; hold on grid on g=9.8; for m=60:70 y=(14*...

3 years ago | 0

Answered
Graph not showing plots
clear; g=9.8; m=60:70 y=(14*35)./(m.*g); plot(m,y) grid on

3 years ago | 0

Answered
How do i determine the highest values of my for loop?
x = 3:0.2:9 ; y=(cos(x+1)./(pi*x-1)); [val,idx] = max(y) ; [x(idx) y(idx)]

3 years ago | 0

| accepted

Answered
Trying to find the value of z for any value of k
Read about subs. Using this, you can substitute the required value of k. You need to convert the result/ syms call into a number...

3 years ago | 0

| accepted

Answered
I want to use between two values while plotting
a=linspace(0,1,50) ; x=linspace(0,1,50) ; [X,Y] = meshgrid(a,x) ; Z=X.^Y; surf(X,Y,Z)

3 years ago | 0

| accepted

Answered
I want to only run my loop till 22 but it shoud take odd numbers for x_random and even for y_random
for i=1:22 if mod(i,2)==0 P(2,i) = y_random(i); %y coordinate else P(1,i) = x_random(i); %x coordi...

3 years ago | 1

| accepted

Answered
Remove white space in plot
Read about axis, xlim, ylim

3 years ago | 0

| accepted

Answered
How to replace matrix elements by using statements?
It is very simple and straight forward. Consider this example. A = rand(3) ; A(A<0.3) = 0 ; A(A>0.8) = 1 ;

3 years ago | 1

| accepted

Answered
Extract data along line from gridded data
Read about interp2.

3 years ago | 0

| accepted

Answered
Implementing Euler's method for a 1D system
h=0.1; x=-5:h:5; y=zeros(size(x)); y(1)=0; for n=1:length(x)-1 dydx=3*x(n).^2+2*x(n)-12; y(n+1)=y(n)+dydx*h; end ...

3 years ago | 0

| accepted

Answered
Plot of a butterfly using mathematical equations
Don't use loop...instead use scatter. Read about it. clc; clear all ; clear; close all; clc; sin1 =@(k) sin((pi*k)./40000...

3 years ago | 1

| accepted

Answered
Scatter points with a colormap based on distances
You can use scatter3. x = rand(10,1) ; y = rand(10,1) ; z = rand(10,1) ; d = rand(10,1) ; scatter3(x,y,z,[],d,'filled') ...

3 years ago | 1

| accepted

Answered
how to calculate and plot rmse matrix
Let O be your observation data array of size mX1 and M be your model data array of size mx40. O = rand(30,1) ; M = rand(30,40...

3 years ago | 0

| accepted

Answered
How to use gpu for deep learning
Check the trainingOptions, in there you have option to specify the execution environment. Example: options = trainingOpti...

3 years ago | 0

Answered
create a function from temperature data
Read about interpft

3 years ago | 0

Answered
Finding the highest mountain peak
[val,idx] = max(Z,[],3) ; Get the maximum along third dimension, idx gives you the thirs index where max occurs. Now find the ...

3 years ago | 0

Answered
How to wrap image along a polygon
REad about warp

3 years ago | 0

Answered
Find the polar representation of (𝑖 − √3 )
Hint: Use abs to find r. Use atan to find the angle. Use sin, cos to get the polar form. x = r*cos(theta) ; y = r*sin(th...

3 years ago | 0

Answered
How do I find a maximum within a certain range
Let (x,y) be your data arrays. idx = x>0.1 & x<0.7 ; iwant = max(x(idx)) ;

3 years ago | 0

Load more