Answered
How to access recent comments in the FileExchange?
In the activity feed you can select the 'Files' section, where you can see only the FEX-related activities. You do need to remem...

26 days ago | 1

| accepted

Answered
How the number of times n of the patchwork increase?
You don't check if your image is actually large enough to allow 6000 unique indices. You should either reduce the number of samp...

28 days ago | 1

| accepted

Answered
Plot median values in a bin (binned plot)
You can try <https://www.mathworks.com/matlabcentral/fileexchange/98239-gridbin gridbin>. I haven't used it myself, but it se...

28 days ago | 0

| accepted

Answered
Compiler Toolbox - Generate Portable versions
To my knowledge this is only possible if all target machines have Matlab installed (or the MCR). An alternative would be to u...

29 days ago | 0

Answered
lsqnonlin for 2 independent variables
You should merge x and y to a single variable (i.e. a 2 element vector). That way you can do this with a single call to lsqnonli...

29 days ago | 0

| accepted

Answered
Standalone App installation folder
I personally use this function to store persistent files regardless of OS and runtime version: <https://www.mathworks.com/matlab...

1 month ago | 0

Answered
Download files from https server using username and password
You should be able to use websave. You can provide a username and password in weboptions: weboptions

2 months ago | 2

| accepted

Answered
how to export multiple .mat files to csv using the automation script?
Load to a struct: base=sprintf('mat_file%d',1); S=load([base '.mat']); data=[S.([base '_Inputs']) S.([base '_Outputs'])]; ...

2 months ago | 0

| accepted

Answered
Split comma seperated values inside a cell in to multiple columns
S=load(websave('split_mat.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/709142/split_mat.mat')); split_m...

2 months ago | 0

| accepted

Answered
Can u use filtfilt with structfun?
You need to use either a function handle, or create an anonymous function. Your syntax does neither. Try this modification. % H...

2 months ago | 1

| accepted

Answered
Handles not getting updated from pushbutton using GUIDE
Your looping function doesn't store the modified handle struct. guidata(hObject, handles); %put this before your return st...

2 months ago | 1

| accepted

Answered
Extracting x,y data from a folder of figures
You can set the visibilty to off when loading the figure: fig = openfig(figfile,'invisible'); That should take care of the f...

2 months ago | 0

| accepted

Answered
Incrementing file names to run loop commands
Use sprintf to create your variable names, use arrays to store your data. Don't use numbered variables.

2 months ago | 0

| accepted

Answered
Error while averaging multiple images
The size function returns a vector of at least two elements numberOfImages = size(files); %replace this by: numberOfImages = ...

2 months ago | 1

| accepted

Answered
I want my graph to be continuous
You can also let Matlab do the heavy lifting by creating an anonymous function and using fplot: a=8.4; v=58.8; fun=@(t) 0 + ....

2 months ago | 1

| accepted

Answered
How to use property from one class in to define a property in another class?
I don't know what the 'correct' answer would be, but you can also set the value in the constructor: classdef Agent propert...

2 months ago | 1

| accepted

Answered
For this loop I want the output to print str='b' anytime A='1'
This behaviour is exactly as documented. if A=='1' does not create a loop. clc clear str=[]; for q=20:21 A=dec2base(q,1...

2 months ago | 0

Answered
how to store values into array/matrix with different number of rows and only one column
It is best to pre-allocate your output array as close to the size you think you need, because extending a matrix hurts performan...

2 months ago | 0

| accepted

Answered
cross product is wrong
1/70368744177664 eps This number is so small that you can assume this is a rounding error. The root cause of this rounding er...

2 months ago | 2

Answered
Remove Curly brackets from string/array - what am I working with?
Your data seems to be a cell containing JSON data: data={'[[0, 145, 0], [145, 169, 1], [169, 1693, 3], [1693, 1708, 1], [1708, ...

2 months ago | 0

Answered
Opening nc file and reading sections of data
Your second code paragraph assumes filename is a function, while the first sets it as a variable.

2 months ago | 1

| accepted

Answered
How I can create this matrix?
A simple loop with indexing will do the trick. But in this case you can also use the normal matrix multiplication A=[1 3 0;2 3 ...

2 months ago | 0

| accepted

Answered
Error: Brace indexing is not supported for variables of this type.
Why are you reading your file like that? And why are you using assignin? There is no reason to be using that here. Since you'r...

2 months ago | 0

| accepted

Answered
How to delete the dropdown items permanently using button in app designer
When you delete an element you need to save the mat file again. You should also consider loading to a struct instead of poofi...

2 months ago | 0

| accepted

Answered
Error finding Linear Regression with polyfit and \
Removing the NaNs will do the trick. Although I'm not sure this data should have a linear fit. fn=websave('data.mat','https://w...

2 months ago | 0

Answered
textscan - multiple format lines
It looks like the same format to me. Why not read as text, split on the = and use str2double on the last column? To read your f...

2 months ago | 0

| accepted

Answered
Create arrays of observations
You should not name your variables dynamically. Why are you not storing them in an array when reading? What is wrong with the co...

2 months ago | 0

Answered
How to count the black pixels in a segmented section of image?
activecontour returns a logical array. That means you can count the black pixels by inverting and using sum (or nnz).

2 months ago | 0

Answered
How to correctly plot a 6x2 grids of subplots
You can also make a montage yourself. The function below is from my unpublished toolbox replacement suite. You still need an i...

2 months ago | 1

| accepted

Load more