Answered
MATLAB has encountered and internal problem and needs to close
Didf you read the message? Especially this part is important: If this problem is reproducible, please submit a Service Request ...

8 years ago | 0

Answered
Path containing a trailing ampersand doesn't work in system () call
I do not see the "trailing ampersand". Do you mean the one in "W&T"? Why do you assume, that this is a problem of the &? Do you...

8 years ago | 0

| accepted

Answered
Veiwing the source code for a function in Matlab?
Do you have Matlab installed already? Then you can check tis easily by your own: Search the folder in Matlab's installation fold...

8 years ago | 0

| accepted

Answered
Passing an array into a function
This is most likely the same problem than in your other question: The statement "Let x=[0.7840 0.0005 0.0817 0.5732]" is not...

8 years ago | 1

| accepted

Answered
Same function gives different answers while checking in a command window. why?
Your input is created by rand. This creates floating point numbers with about 16 significant digits. For convenience they are di...

8 years ago | 0

| accepted

Answered
Inserting values from matrix into a script file
X = [ 0 3846 6; 4154 51 64 ; 8945 56 4]; Folder = 'C:\Temp'; % Adjust to yozur needs fileNames = {'max', 'min', 'avg'}; for...

8 years ago | 0

Answered
how to creat this vector?
The question is not clear, but I assume you mean: set values to 0, if less than 3 neighboring elements are 1. With FEX: RunLeng...

8 years ago | 1

Answered
How do I create code to give me every iterations of multiplying rows and columns in a Matrix.
The question is not clear yet. A bold guess: X = [1,2,3; 4,5,6; 7,8,9]; index = perms(1:size(X, 1)); Y = X(sub2ind...

8 years ago | 0

Answered
I Would like to create a variable array based upon user inputs.
The code contains several strange commands. Type=size(n)' Are you sure? Without an explanation in the comment the readers can ...

8 years ago | 0

| accepted

Answered
what is the meaning of code?
To learn the basics, read the "Getting Started" chapters of the documentation an read Matlab's Onramp: https://matlabacademy.mat...

8 years ago | 0

Answered
Looping in matlab for months
This sounds like a job for the mod function. Count from 10 to 13, but use mod to limit the output to a certain range.

8 years ago | 0

| accepted

Answered
Why doesn´t conversion from .ASC / .csv / .txt to .xls work?
You are struggeling with the commas, which are used as decimal separators. Replace them by dots at first. Data = fileread(FileN...

8 years ago | 0

Answered
Sorting matrix through multiple conditions
Although I do not know, what the question is, a dare to guess: a = [2;4;5;80;40;5;43;22;6;56;6;57]; b = [100;122;132;120;108;2...

8 years ago | 1

| accepted

Answered
calculate iteration in cellfun
The posted code works exactly as expected. You called cellfun with the 'UniformOutput' set to false. Then it replies a cell arra...

8 years ago | 0

Answered
how to use helperGaitPlot?
Let me guess: You typed helperGaitPlot('als1m') in the command shell of the operating system? Then the problem is clear: Run i...

8 years ago | 0

Answered
How to add text descriptions to data points ?
text is powerful and fast, if you call it correctly. It is the best function to insert text in axes objects. You will not find a...

8 years ago | 0

| accepted

Answered
Scan the image until the first and last points I set
This does not solve the question, but is a collection of images you have posted yet: A cropped output (logo only partially visi...

8 years ago | 3

| accepted

Answered
how to creat this rectangular signal?
x = [1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0]; y = ones(size(x)); y(strfind(x, [0,1])) = -1; y = cumprod(y); y(y == ...

8 years ago | 1

| accepted

Answered
tangent point between two circle problem
It is recommended to search in the net or especially in this forum before posting a new question. What about this solution: http...

8 years ago | 2

| accepted

Answered
Importing and appending a complete folder of excel files
It depends on what "in one shot" means. It is trivial to create a loop to import one file after the other, see FAQ: Access a seq...

8 years ago | 0

| accepted

Answered
Why do I get 0*1 cells?
You are searching for: '<h3 class=”” title=' % ^^ I'm sure, you mean: '<h3 class="" title=' with standard double q...

8 years ago | 0

Answered
Calculating throughput for users for 10000 times
I cannot follow your explanations. I start with cleaning your code: simulations = 10000; n_vec = 1:2:20; R = zeros(1, simulat...

8 years ago | 0

Answered
Converint between Cell arrays and Numbers and Strings
This obtains the digits of a decimal number: x = 10000111; n = floor(log10(x)); out = rem(floor(x(:) ./ power(10, n:-1:0)), 1...

8 years ago | 1

| accepted

Answered
How to save diary to xls or xlsx
Of course it does: xlswrite (file_name,'diary') creates an Excel file and inserts the char vector 'diary'. Why do you try to us...

8 years ago | 0

| accepted

Answered
Code optimization for nested for loop
Instead of implementing the nested loop by hard coding, you can use a vector as iteration counter: function Result = Method1 n...

8 years ago | 1

| accepted

Answered
Code optimization for nested for loop
Letting an array grow iteratively wastes a lot of time. Pre-allocate the output. [EDITED: Code fixed:] function main tStart =...

8 years ago | 0

Answered
Next line command in fprintf is not working while writing in text file
The shown code is working and correctly writing a line break: Test = '0' test1 = 'good' Fmt = ' $...........Model \n Test=...

8 years ago | 1

| accepted

Answered
how to display multiple images in matlab gui axes one by one by 10 second intervals??
"10 seconds" interval sounds like a job for a timer. Is "click start button" a part of the problem? If so, please explain this w...

8 years ago | 0

Answered
Numercial Iterations using Loop
This is strange: function [vAn,vNum] = Q3_STNO(T,N,m,d) You do not create the outputs vAn and vNum. The inputs T,N,m,d are ove...

8 years ago | 0

| accepted

Load more