Community Profile

photo

_


Last seen: Today Active since 2013

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • Thankful Level 2
  • 6 Month Streak
  • Commenter
  • Leader
  • Guiding Light
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar
  • CUP Challenge Master

View badges

Content Feed

View by

Answered
How to find repeated values after decimal in array?
data = [ ... 868.1 567.1 413.1 1159.7 52.1 99.7 126.7 111.1 167.2 1322.2 ...

27 minuten ago | 0

Answered
Writting multiple files with fopen 'w'
Here's a function (get_unused_file_name) you can use for this purpose. It takes a file name and check if that file already exist...

ongeveer 3 uur ago | 0

Answered
I don't understand the condition from FOR row 16 to row 26. Can explain each row form if row to the end please.
Lines 16 through 26: for i=1:rows fprintf('('); for j=1:columns if j < columns fprintf("%.4f , ...

ongeveer 17 uur ago | 1

| accepted

Answered
round to 2 decimal places but still have more than 2 decimal places when storing
"the stored value not storing 2 decimal places." If you mean the value written to file has more than 2 decimal places, that's b...

ongeveer 17 uur ago | 1

Answered
Find min and max datetime in table
T = table( ... [2;2;3;3], ... datetime({'05/20/22';'05/20/23';'04/12/99';'06/12/02'},'InputFormat','MM/dd/yy'), ... ...

ongeveer 19 uur ago | 0

| accepted

Answered
sort the matrix by the order of the first row
A = [ ... 3 5 4 1 2 0.2 0.5 0.7 0.1 0.9 0.7 0.9 0.4 0.3 ...

ongeveer 19 uur ago | 0

| accepted

Answered
ismember to filtered table
That's doing ismember with the names of the files. [a,b]=ismember('meta_data_mri.MRID','MRIdata.subjects') [a,b]=ismember('abb...

ongeveer 19 uur ago | 0

Answered
Can someone run this function and give the results as I have 2017 version and I believe there are some functions that work in latest versions
It appears to run ok in R2017b. I guess that means you have R2017a. Here's the result: openfig('untitled.fig'); If I had to g...

ongeveer 22 uur ago | 0

| accepted

Answered
Deleting rows with an if Statement
Here's a way to delete rows of a matrix if two conditions are both met: x = magic(7) % delete rows of x where the value in col...

ongeveer 23 uur ago | 0

| accepted

Answered
How do I use readtable to read in an Excel file whose first column has indenting that I want to preserve?
opts = detectImportOptions('test.xlsx'); opts.VariableOptions(1).WhitespaceRule = 'preserve'; Ex_MassProps = readtable('test...

1 dag ago | 1

Answered
function with text string input and excel file
warning off all get_car_info('Cars.xlsx','x') get_car_info('Cars.xlsx','y') get_car_info('Cars.xlsx','z') function out = g...

1 dag ago | 0

| accepted

Answered
How to set sample values to zero
Use x(x < threshold) = 0, where x is your signal and threshold is your noise amplitude. Or x(abs(x) < threshold) = 0, if you mea...

1 dag ago | 0

Answered
Non working while loop
The last line inside the while loop: x0 = x1 sets x0 to x1. Therefore, when the while condition is checked again (which happe...

1 dag ago | 1

Answered
why do i get "Array indices must be positive integers or logical values ?"
res_im = imresize(imgs{i}, 0.4); is before the i loop, so i is not defined, so MATLAB interprets that i as the imaginary un...

1 dag ago | 0

Answered
Error using matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (line 111) 'Value' must be a double scalar.
Try it without converting to string app.EditField.Value = Re; because if app.EditField is a NumericEditField, its Value is a n...

1 dag ago | 0

Answered
Convert digital numbers to datetime elements
If you make a datetime array from t2, you can use interp1 to interpolate. (Also, t1 has 1057 elements, so I'll remove the last ...

1 dag ago | 1

| accepted

Answered
Find the corresponding value of y when x is a specific value?
Maybe this % a 3D array like yours M = [(230:598).' rand(369,1)]+reshape(0:5:130,[1 1 27]); size(M) % find the row of M(:,1,...

1 dag ago | 1

| accepted

Answered
Why does the variable 'ans' cannot be change when setting a domain? For example: I wanted to change the variable 'ans' to 'xofZ' but it keep saying it failed.
If you want to modify the value of xofZ, e.g., by having it retain only the real solutions, you must assign to xofZ. When the v...

2 dagen ago | 0

| accepted

Answered
how do I flip ever column in a matrix without using the fliplr function?
n = randi([4,15]); n_mat = randi ( [1,100], n, n) n_mat_flipped = n_mat(:,end:-1:1)

2 dagen ago | 0

| accepted

Answered
how to save plots in a folder. named as figure1,Figure2,Figure3,Figure4?
files = dir('*.txt'); files = fullfile({files.folder},{files.name}); for ii = 1:numel(files) a=readmatrix(files{i...

2 dagen ago | 0

| accepted

Answered
Use for loop to compare each row value out of two separate arrays to create a filtered final array
Inside the for loop, use RollValue(i) and PitchValue(i) instead of RollValue and PitchValue, and also you'll need to assign to A...

2 dagen ago | 1

| accepted

Answered
Function 'subsindex' is not defined for values of class 'cell'
What's wrong is that TIP1 is a cell array, and you can't use a cell array as an index, as in here you are attempting to access t...

2 dagen ago | 0

Answered
Deleting CreateFcn in GUI
There is an option in GUIDE (in the Tools menu > GUI Options ...) called "Generate callback function prototypes", which is selec...

2 dagen ago | 0

Answered
how to solve this reshape error?
Yes, this converts Sparameter into a row vector: Sparameter=reshape(Sparameter,1,[]) However, since Sparameter is a column vec...

2 dagen ago | 0

Answered
İmplementing a Pause button
"İs there anyway seconds can just be recorded?" second(datetime('now')) pause(2) second(datetime('now')) Using that in your ...

2 dagen ago | 0

| accepted

Answered
Looping 10 times and recording the results
clc; clear all; close all; %PARAMETRELER MaxIterration=10; M=3;%kromozom sayısı Pc=1;%çaprazlama olasılığı Pm=0.3;%muta...

3 dagen ago | 0

Answered
Problem displaying a counter on a GUİ
If your static text is called handles.exp_counter, then that's going to be a problem because the name handles.exp_counter alread...

3 dagen ago | 0

| accepted

Answered
How do i create variables that store arrays
You can use a cell array: Array = { ... [ 1 2 3 4; 1 2 3 4] ... [ 1 2 1 2; 3 2 1 2] ... [ 1 3 1 3; 2 3 2 3] ... ...

3 dagen ago | 0

| accepted

Answered
Patch not working properly with 2d latitude and longitude
Try using surface instead of patch.

3 dagen ago | 0

| accepted

Load more