Beantwortet
How to extract rows which contains specific values in each row, then automatically repeat the process for a range.
Without direct access to your data I cannot give you a perfect solution to your data, so what I put here will likely take some f...

etwa 7 Jahre vor | 0

Beantwortet
Moving NaN elements from the last columns to the first column, iteratively
Do you want your numeric values in ascending order? If so you should be able to do the following: A = sort(A,2,'MissingPlacemen...

etwa 7 Jahre vor | 0

Beantwortet
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in pid_optimized1 (line 17) solution(K,:) = [K a m ts];
You are recieving the error because you are trying to use K as an index value, but K is not always a positive integer. for K =3...

etwa 7 Jahre vor | 0

Beantwortet
How get values from ch
As far as I can tell the easiest way to do what you're asking would be something like the following: price = str2num(regexp(str...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
Index exceeds the number of array elements (4)
The error is occuring because sym_table is a 1x4 complex double array, but in the particular line you are attempting to call ele...

etwa 7 Jahre vor | 1

Beantwortet
Can anyone write a mathlab program for this question
Yes. I can write a Matlab program to solve that problem. Try this.

etwa 7 Jahre vor | 0

Beantwortet
combin 4 three dimential matrices in one matrix
You cannot directly combine a 5x3x10 and a 2x2x10 matrix into a 7x5x10 matrix within Matlab because the direct combination of ma...

etwa 7 Jahre vor | 2

| akzeptiert

Beantwortet
Add a column in a CSV file
The best way to do this is to read the entire file in with csvread, add your column to the matrix, and then reprint the file wit...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
Read specific data columns from a text file based on header name requested by user
I started to work on this, and realized that with my knowledge the code was going to be pretty ugly. If anybody knows a way to c...

etwa 7 Jahre vor | 1

Beantwortet
How do I split a text file at specified points?
% Load the file file = fileread('mytextfile.txt'); % Split the data at $ data = regexp(file,'.logE','split'); You may end ...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab using regexp function i want to parse string and data
There are a few things I notice here. 1) I have edited your patterns so they should capture what you're looking for. 2) It see...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
coupling of coorresponding sheets of excel files
There are two ways of doing this. You can either use xlsread and load each set of data into matlab one sheet at a time, or you c...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
Plots in excel sheets using matlab
If you want to create a plot in the excel sheet directly you need to use the ActXServer capability. Here is a brief layout of w...

etwa 7 Jahre vor | 4

| akzeptiert

Beantwortet
How can I extract data from a structure? I keep getting "The class struct has no Constant property or Static method named 'strains'." error
ans.strains The 'struct with fields' is the standard output line that tells you the class of the variable you just viewed, 'ans...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
How can I save structures from a cellarray into individual .mat files with a loop?
It is saving all of the data because you are not indexing your save selection. save(c_string,'datacut'); You will need to crea...

etwa 7 Jahre vor | 0

| akzeptiert

Beantwortet
problem regarding limits of y and x-axis
It seems like all you need to do is change the axis range. This can be done manually in the figure window. Open the 'Edit' men...

etwa 7 Jahre vor | 0

Gelöst


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

etwa 7 Jahre vor

Beantwortet
How to optimize this for loop?
v0(v0<=2) = 0; v0(v0>=26) = 0; v0(v0>=120) = 12; Should work for all three, because they're apparently the same with differen...

etwa 7 Jahre vor | 0

Beantwortet
How to solve "Subscripted assignment dimension mismatch" error?
That is almost guaranteed to mean that 'i' is not a positive integer, or, more likely, that CL(i).id is not a positive integer. ...

etwa 7 Jahre vor | 0

Gelöst


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

etwa 7 Jahre vor

Gelöst


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

etwa 7 Jahre vor

Gelöst


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

etwa 7 Jahre vor

Beantwortet
Multiple lines in single cell
If I am understanding you correctly, you want to use to combine your strings into a single string, but maintain the individual r...

etwa 7 Jahre vor | 0

Beantwortet
Import files into Matlab and compare values
The dates and times of the spreadsheet are in separate columns, and I can't import the times as times (they are imported as numb...

etwa 7 Jahre vor | 0

Frage


Can anybody explain the interaction of Wilkinson and unique?
I was working on one of the Cody questions, and encountered the wilkinson function. In working to solve the problem I was utiliz...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How can I plot a certain range of data?
You said you have two scripts. How are you running your two scripts? Are you running them separately, or are you running them in...

etwa 7 Jahre vor | 0

Beantwortet
Help sorting out for loop/if statement code to create a figure
fig2=figure (2) c=0 for i=8:1:38 for t=1:1:numel(SpikesAll(i)) if isnan(SpikesAll(t,i)) break ...

etwa 7 Jahre vor | 0

Gelöst


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

etwa 7 Jahre vor

Gelöst


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

etwa 7 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

etwa 7 Jahre vor

Mehr laden