how to create a fan shape/ arc inside an image?

2 months ago | 0

Stress strain with respect to time
t = linspace(0,0.25) ; y = sin(pi/2+25*pi*t) ; plot(t,y)

2 months ago | 0

| accepted

Extract coordinates from a geopolyshape
The present version is much easier. Note that the class of us_states is a table. You can extract the column using: us_states =...

2 months ago | 0

How to check decimals of a number in MATLAB?
x = 5.5 integ = fix(x) frac = mod(abs(x),1)

2 months ago | 1

| accepted

How to Perform Multivariate Regression with Two Independent Variables on a Surface

2 months ago | 0

How do I get the only the integer part?
a=1.8460e+03; round(a)

2 months ago | 0

| accepted

can i access field by using values in structure?
S = struct ; S.name = {'Tom' 'Dick' 'Harry'} ; S.sex = {'M' 'M' 'F'} ; S.Age = [16 17 18] ; val = 'F' ; fields = fieldna...

2 months ago | 0

| accepted

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

2 months ago | 0

| accepted

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

2 months ago | 0

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...

2 months ago | 1

| accepted

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...

2 months ago | 0

| accepted

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) '...

2 months ago | 1

| accepted

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...

2 months ago | 0

How to use quiver correctly?

2 months ago | 1

time series comparison and grouping similarly behaving time series

2 months ago | 1

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((...

2 months ago | 0

| accepted

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*...

2 months ago | 0

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

2 months ago | 0

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)]

2 months ago | 0

| accepted

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...

2 months ago | 0

| accepted

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)

2 months ago | 0

| accepted

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...

2 months ago | 1

| accepted

Remove white space in plot

2 months ago | 0

| accepted

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 ;

2 months ago | 1

| accepted

Extract data along line from gridded data

2 months ago | 0

| accepted

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 ...

2 months ago | 0

| accepted

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...

2 months ago | 1

| accepted