Answered
If inputs are matrix why is output no matrix in a for loop?
Because you have not used element-wise division while defining theta4_neg and theta3_neg. The simple backslash operator (/) pe...

2 years ago | 0

Answered
interpolation of gaze trajectory data
Check out fillmissing

2 years ago | 0

Answered
How to plot with ticks but without figures
Remove the tick labels - %Example %Plot fplot(@(x) sin(x), [-5 5]) %Adjust ticks xticks(-5:0.5:5) %Remove the tick labels...

2 years ago | 0

| accepted

Answered
splitting output of a loop into multiple parts
Dynamically growing arrays is not a good coding practice. Instead, Preallocate a cell array and vectorize the inner for lop. R...

2 years ago | 1

| accepted

Answered
特定のプロット(グラフ)を削除する方法
Save the handles of each plot then delete accordingly. %Example figure hold on [X,Y] = meshgrid(0:6,0:6); U = 0.25*X; ...

2 years ago | 1

| accepted

Answered
i am unable to plot the following signals can anyone help me? 1. x(−1 − t) 2. (x(t)+x(−t))u(t−1)
Define a piecewise function and use subs to obtain the function for the different inputs. syms t %Define x(t) x = piecewise...

3 years ago | 0

| accepted

Answered
Importing multiple files using a loop
This is a general idea - n=30; %Preallocate A = cell(1,n); %Storing data for k=1:n A{k} = importdata(sprintf('0%d...

3 years ago | 0

| accepted

Answered
Find all x-axis values to a certain y-axis value
Logical indexing is the way to go. Also refer to Find Array Elements That Meet a Condition

3 years ago | 1

| accepted

Answered
Why are is the zeros or zero(size) function in a for-loop function?
"Why are is the zeros or zero(size) function in a for-loop function?" y = zeros(1,100); This is called Pre-allocation. It is d...

3 years ago | 1

Answered
How to remove the textbox on geoplot()?
You can not remove that particular textbox. That textbox is embedded in the geobasemaps that are provided by external sources, p...

3 years ago | 1

Answered
function not plotting, but no error message
The code after the semi-colon in this line of code seems to be a typo opts = odeset('RelTol',1e-6,'AbsTol',1e-8);function [dXdt...

3 years ago | 0

| accepted

Answered
How determine prime numbers after checking if they're odd
Check for prime numbers using isprime

3 years ago | 1

Answered
Assign different values per column using logical indexing
A simpler approach for your task would be matrix = magic(5) % data matrix matrix(:,2) = max(matrix(:,2),10) matrix(:,3) = ma...

3 years ago | 1

Answered
Dividing a row in a table by its first entry which results in a new column with a 1*1 table in each row. How can i change it to the number?
As I don't have your data, I'm using random data - LastName = {'Sanchez';'Johnson';'Li';'Diaz';'Brown'}; Age = [38;43;38;40;4...

3 years ago | 0

| accepted

Answered
how to remove a particular season values from monthly time series?
Assuming the data is stored as a double array and the season data is month wise i.e Jan-Feb-...-Nov-Dec y = rand(360,720,240); ...

3 years ago | 1

| accepted

Answered
Distance between 2 curves from one point
% Gegebene Daten x = [29.069, 44.395, 59.528, 74.76, 90.036]; y = [0.07091, 0.076187, 0.081665, 0.087588, 0.093687]; % Quad...

3 years ago | 0

Answered
Obtain GPS coordinates from figure
Click on a point anywhere on the data plotted, that will generate a data tip. Hold shift to select multiple data points at once...

3 years ago | 0

Answered
Sort random number at a matrix
Do you mean like this - n = 10; x = [(1:10)' (10:-1:1)'] idx = randperm(n) x = x(idx,:)

3 years ago | 0

Answered
day and month inverted in the time scaling
Extract the day and month from the datetime values and swap them. %Example in = [datetime(2023,4,5,00,00,22.384) datetime(2023...

3 years ago | 0

| accepted

Answered
How to increase decimal places in corrplot function?
I don't have your data, so I am working with the 1st example from the documentation of corrplot. load Data_Canada [R,~,H] = ...

3 years ago | 0

Answered
How to use a long matrix on matlab?
The matrix is not 27x27. There are elements missing in the 22nd and 23rd row. Check the data again.

3 years ago | 1

| accepted

Answered
Get indices of matching values (vectorized find function)
Use ismembertol when dealing with floating point numbers, ismember when dealing with integers. a = rand(6, 1) b = randi(6, [6,...

3 years ago | 0

| accepted

Answered
How to create 3d array whose value follows a certain pattern without using for-loop?
Your code will not run as you are trying to store 3 numeric values in 1 numeric place holder. I have corrected the code below %...

3 years ago | 0

Answered
How to use array as input for a function and store outputs and then graph the function?
%No need of using these commands %clear all; close all; fs = 500; T = 1/fs; k = 7; m = 2^k; t = 0:1/fs:((10000-1).*1/fs); ...

3 years ago | 0

| accepted

Answered
Change axes position in tiled layout
The position property for a tiledlayout refers to the position of the whole layout not each tile, see here - https://in.mathwork...

3 years ago | 3

Answered
create a string like "AA";"BB";"CC";"DD", and so on
str = string(char('AA' + repmat((0:25)',1,2)))

3 years ago | 1

| accepted

Answered
quadruple summation using function
Similar to my answer in a previous question of yours, use ndgrid %Random value for N for example N = 10; kvec = 0:1:N; %1 a...

3 years ago | 0

Answered
How to plot 2 geo plots together
The data you have generates the following map plot - maint = readtable('main towers.csv'); subt = readtable('subtower.csv')...

3 years ago | 1

| accepted

Answered
I want to plot a transparent triangle
Use the color 'white' W = 0.5; L = 0.3; Patch = [-0.3, -W/2; -0.3, W/2; L, 0]; triangle_local = Patch; triangle_handle = f...

3 years ago | 0

| accepted

Answered
How I can run following code for different p and t values?
You can run a for loop through the elements of t and p and get the output. Another option is to use arrayfun, which I have done ...

3 years ago | 1

Load more