Respondida
How to display all values of uint32 array in variable browser?
Answered your query in the newsgroup <https://www.mathworks.com/matlabcentral/newsreader/view_thread/348526 <view_thread/348526>...

más de 9 años hace | 0

Respondida
How to merge two different datasets sharing only one variable into a new one without using for-loop?
u=unique(data1.secid); % those in dataset 1 new=data(ismember(data2.secid,u),:); should do it providing you don't run in...

más de 9 años hace | 0

| aceptada

Respondida
Hello; Can someone please help me matlab doesn't plot my excel data it show the axis only I am trying to make spectral analysis.i have attested the excel file and code as well.
filename = 'datacollect2.xlsx'; N = length(filename); fs = 400; fnyquest = fs/2; num = xlsread(filename); y = ...

más de 9 años hace | 0

| aceptada

Respondida
How to optimise bar chart display?
Hmmm....that is a failure in the internal scaling algorithm fur shure...easy enough to fix, though; bar axis center values for d...

más de 9 años hace | 0

| aceptada

Respondida
Use low-level functions (not imread.m) to read an grayscale image
See <http://www.npes.org/pdf/TIFF-v6.pdf <TIFF-v6>> for structure... *ERRATUM:* Corrected link -- dpb *ADDENDUM* _"I t...

más de 9 años hace | 0

Respondida
Error using variable in a function with trial version
function [matrice] = SelectionSept (matrice) for i = length(date):-1:1; ... |*date*| isn't defined in your func...

más de 9 años hace | 0

Respondida
Why would csvread read all data into a single column
Expanding upon the above comments, I did a test that looked like-- N=1E6; % the long row le...

más de 9 años hace | 0

Respondida
How can I convert all files to txt?
To consider any file as simply a stream of bytes (char), write dat=fread(fid,inf,'*char'); What this ignores with specia...

más de 9 años hace | 0

Respondida
Piecewise Polynomial fitting for data
Fitting a polynomial is probably not going to work all that well and certainly a fifth-order one is likely quite unstable. W/...

más de 9 años hace | 1

Respondida
How to properly extract data from text file.
The first one is (relatively) easy -- you set _'ReadVariableNames',true_ whose meaning per documentation is "the first row of th...

más de 9 años hace | 0

| aceptada

Respondida
How do I format data in a table
L=max(cellfun(@length,A.colheaders)); % longest header length for width N=size(A.data,2); % number co...

más de 9 años hace | 0

| aceptada

Respondida
How to call a function correctly.
[phi_x,phi_y]=do_flower_image(flowers,alpha,iters) Well, if iflowers=do_flower_image(flowers,alpha,iters); worked (...

más de 9 años hace | 0

| aceptada

Respondida
problem with writting data to excel from matlab
>> help xlswrite ... A — Data to write matrix | cell array Data to write, specified as a two-dimensional numeric ...

más de 9 años hace | 0

| aceptada

Respondida
How to return the fit as a function object?
Under 'Fit' menue, 'Save to Workspace' will save a |*cfit*| object of your choice to name. Not precisely sure what you're then ...

más de 9 años hace | 0

Respondida
How to call a series of values normally distributed around an average value (and within a range)?
out=mu+sigma*randn(1); doc randn % for details As far as bounding outputs, the RN variate is not bounded albeit proba...

más de 9 años hace | 0

Respondida
How to create loop that plots data from a file depending on the length of data and with specific pattern
L=length(Flow1); N=fix(L/10); % how many complete datasets are there? ip=0; % index, plots ia=0; ...

más de 9 años hace | 1

| aceptada

Respondida
How to Remove files that don't match string?
If anywhere in the filename, then UnwantedStrings={'Z1P', 'Z2P', and 'Z1G'}; Files=Files(~ismember(upper(Files),'Unwante...

más de 9 años hace | 0

Respondida
Can someone explain to me how I can format the function to output only Max and Half_max into an excel file, for each file in the loop? Thanks!
OK, after all the above discussion, here's the function I tested on a file with two CSV-separated numeric columns. It also ha...

más de 9 años hace | 0

| aceptada

Respondida
Plotting inside for loop using if
Reorganized your code to do as suggested above... G=200; %mass flux[kg/m^2*s] Pred=0.31052; %re...

más de 9 años hace | 1

| aceptada

Respondida
How do I create a vector with a string and an iterative counter
_"Each contour line definition follows this pattern:"_ C(k) = [level x(1) x(2)... numxy y(1) y(2)... ] So...

más de 9 años hace | 0

| aceptada

Respondida
I have the index value from a plot. Now what?
If you plotted with plot(x,y) then x(cursor_info.DataIndex) is the x value at that index point (which is also th...

más de 9 años hace | 0

Respondida
How to filter data from table using multiple strings
>> t=table(categorical(c),'variablenames',{'Code'}); % put your data back into the table from whence it came >> summary(t)...

más de 9 años hace | 1

| aceptada

Respondida
how to read a letter from a string in a cell?
Just as in any other cell addressing; use the indexed addressing mode-- >> whos s % just happened to be in workspace at th...

más de 9 años hace | 0

Respondida
Filenames from uigetfiles or dir strip of their accents.
I = dicomread(fullfile(pad, char(list(i)))); or I = dicomread(fullfile(pad, list{i}))); There really aren't carat...

más de 9 años hace | 0

| aceptada

Respondida
How can i find the best fit points from the input and output data
"_I interpolated these x and y points to increase the samples [and] then applied linear least square algorithm..."_ Since *i...

más de 9 años hace | 0

Respondida
How can I join chars to a string vector?
Surprisingly, as so often since documentation in Matlab is example- instead of syntax- driven, the actual rule one looks for isn...

más de 9 años hace | 0

Respondida
Sorting the complex array elements with imaginary part along with it.
*EDIT:* Incorporate Andrei's contribution and add for arrays--dpb >> A A = 1.0000 + 2.0000i 3.0000 + 1.0000i ...

más de 9 años hace | 1

Respondida
Piece of R code translate to Matlab
Been too long, but iirc, looks like: Z=2*rand(Ni,1)+Pbar; P=2*rand(Ni,1)+Pbar; IOW, as near as I can recollect, the t...

más de 9 años hace | 0

Respondida
Not just another dynamic variable naming question! Generating a new string and using it in a command.
_"Each ### is a patient and each of the roman numerals is a separate ECG channel. Each of the leads has hundreds of rows of dat...

más de 9 años hace | 1

| aceptada

Respondida
How do I record all cases where two columns sum to a third?
function out=jhaller(m) m=m.'; % easier to work by row instead of column R=size(m,1); out=nan(3,R*(R-1)/2); ...

más de 9 años hace | 0

Cargar más