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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I do not understand why this script {8/2<5*3+1>9} with logical operators gives NO (0)?
8/2<(5*3+1) & (5*3+1)>9

presque 4 ans il y a | 0

Réponse apportée
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) '...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

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

presque 4 ans il y a | 1

Réponse apportée
time series comparison and grouping similarly behaving time series
REad about plotregression

presque 4 ans il y a | 1

Réponse apportée
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((...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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*...

presque 4 ans il y a | 0

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

presque 4 ans il y a | 0

Réponse apportée
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)]

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Remove white space in plot
Read about axis, xlim, ylim

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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 ;

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Extract data along line from gridded data
Read about interp2.

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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') ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

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

presque 4 ans il y a | 0

Réponse apportée
create a function from temperature data
Read about interpft

presque 4 ans il y a | 0

Réponse apportée
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 ...

presque 4 ans il y a | 0

Réponse apportée
How to wrap image along a polygon
REad about warp

presque 4 ans il y a | 0

Charger plus