Answered
How to import csv file into matlab ?
A meta answer: I like this forum. It is very powerful. But sometimes asking an internet search engine is powerful enough. What a...

9 years ago | 0

Answered
Can anyone help me with making a 2D matrix into a 3D matrix?
Such problems can be solved in general by: Y = reshape(permute(reshape(X, size1), order), size2) Here: a = [1 2 3 4...

9 years ago | 1

| accepted

Answered
Modify cell array in multidimensional array depending on number
What should happen for |Timestep{i,1}==0.5|? Working with numerical arrays would be easier. Work with cells only, if the elem...

9 years ago | 0

Answered
Using datevec with hh.mm.ss.ss gives error [R2017b]
According to the documentation <https://www.mathworks.com/help/matlab/ref/datevec.html#inputarg_formatIn doc datestr> the format...

9 years ago | 0

Answered
Subfolders file search and allocation
Do you have a modern Matlab version >= R2016b? Then you can run a recursive search: Folder = cd; FileList = dir(fullfi...

9 years ago | 11

Answered
how to use GPU to speed up the execution of Matlab algorithms ?
See <https://www.mathworks.com/products/matlab/choosing_hardware.html#_Graphics_Processing_Unit_1>: To speed up computation...

9 years ago | 0

Answered
How can I speed up my code to divide cell array
1. Omit the darn "clear all". It deletes all functions from the RAM. Reloading them from the slow disk wastes a lot of time and ...

9 years ago | 0

| accepted

Answered
How to read Unreadable Files!
I see 2 options: # This is not the file you try to load. Maybe you are working in a different folder than you expect. # The ...

9 years ago | 0

Answered
Error using load Must be a string scalar or character vector
I am trying to extract the first four values from my signal The symbol "load" was not defined as a variable. Then the comman...

9 years ago | 0

Answered
Hold on - best practice question
Especially inside loops I do not like to call |hold('on')| repeatedly. Therefore I avoid this command in general, but set the pr...

9 years ago | 1

| accepted

Answered
How to find the number of triangles formed in below code?
392. Simply count them: <</matlabcentral/answers/uploaded_files/99048/Capture-5.png>> A calculation would be easy also: 14...

9 years ago | 0

Answered
Naming a structure with a string that was fetched through x=input(prompt)
Naming variables dynamically is a bad programming style. It causes more troubles than it solves. An exhaustive summary of the la...

9 years ago | 0

Answered
Find elements from A in B and get the index of found element in B
See <https://www.mathworks.com/help/matlab/ref/ismembertol.html ismembertol> [iA, locB] = ismembertol(A, B, 1e-6); Or ma...

9 years ago | 0

Answered
How to correct ''Function definitions are not permitted in this context.''
You can copy the complete code to a function: [EDITED] Parameters added to multiobj(): function [x,f,exitflag,output] = ...

9 years ago | 1

| accepted

Answered
How can I read a spectrogram like this?
At first you can see, that this is a violin concerto of Alban Berg. The spectrogram shows 6 seconds of the sound after a fourier...

9 years ago | 0

| accepted

Answered
How to scale rotated matrix in a new coordinate?
Your question is still vague, so I can post a vague answer only: If you have a set of points, and want to scale the values "a...

9 years ago | 0

| accepted

Answered
Put struct in a uitable gui
If |handles.datos_topE| is a cell, this line should cause an error: handles.datos_topE(:,3) = 0; Try: handles.datos...

9 years ago | 0

Answered
Difficulty in matlab 2009a student version activation
I'd start with searching it in my MathWorks account. There is a link on the top right of this page to access the account. If Mat...

9 years ago | 0

Answered
Does the A\b use Thomas algorithm for solving, when A is tridiagonal?
As David has mentioned already, all we can know about |mldivide| is mentioned in <https://www.mathworks.com/help/matlab/ref/mldi...

9 years ago | 0

Answered
3D line animation
I'd start with asking an internet search engine e.g. for "Matlab draw cubes". Then I find: * <https://www.mathworks.com/matl...

9 years ago | 0

Answered
How can I 'streamline' this code?
The code works exactly how I want it to Then it is ready. Test is exhaustively. If it works, trying to make it _smarter_ mea...

9 years ago | 0

| accepted

Answered
Random combinations of symbols (restored)
If you have the symbols and probabilities symbols = 'ABCDE' prob = [0.4, 0.05, 0.2, 0.15, 0.2]; You can get one sy...

9 years ago | 1

Answered
Issue in defining range and getting all possible iterations
As far as I understand all you need is: axes('NextPlot', 'add'); % see: hold('on') ... %POSITION OF POINT IN SPACE ...

9 years ago | 0

| accepted

Answered
How to follow progress of a parfor-loop?
Adam has given one example already: Take a look into the FileExchange. You find many corresponding solution if you search for "p...

9 years ago | 3

| accepted

Answered
Cannot download matlab trial.
This is the public forum and most contributions are written by other Matlab users. To get help with installation problems, pleas...

9 years ago | 0

Answered
How to select a folder to download toolboxes to
No. Don't do this. Leave the toolbox inside Matlab's toolbox folder. There is no reason to move it anywhere else, because you do...

9 years ago | 0

Answered
how to I compare strcmp and find cell array
You did not show the full error message yet, but most likely the 2nd input |genderannoall| is neither a cell string or char vect...

9 years ago | 0

Answered
Fast and simple trend
What about the faster |polyfit|: time = [0.2,0.8,0.9,1.1,1.2,1.7,1.8,2.1,2.2]; x = [0.2,0.4,0.5,0.7,1.1,0.7,0.6,1...

9 years ago | 0

Answered
For given vector, make a "averaged vector"
b = movsum(a, [0, n], 'Endpoints', 'discard')

9 years ago | 0

| accepted

Answered
How to get jpeg/png image for processing thanks to GUI?
What is "my main" and "my workspace"? Remember, that each function has its own workspace. You can use e.g. |guidata| to store...

9 years ago | 0

Load more