photo

Jos


Aquamarine Power Ltd.

Active since 2014

Followers: 0   Following: 0

Message

Statistics

MATLAB Answers

1 Question
18 Answers

RANK
1 494
of 300 364

REPUTATION
48

CONTRIBUTIONS
1 Question
18 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
4

RANK
 of 20 934

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 168 407

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Knowledgeable Level 3
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Simple MATLAB lexer program
The function needs some work but couple of things that should help - use fprintf instead of display - replace k=size(arr) ...

nästan 10 år ago | 0

Answered
How can i read a csv-file with strings and integers into script and then write new values in some cells at the end
Hi, if your file containing the information is called 'test.csv' you can read in everything using: p = readtable('test.c...

nästan 10 år ago | 0

Answered
how to compare an element of array to the rest of the elements
As Walter said num(i)>num(i+1:end) compares num(i) to all subsequent elements with result 1 for each time true. You can use this...

ungefär 10 år ago | 0

Answered
How to display all the while loop at static text? (matlab GUI)
Hi Abraham, try this (assuming you added a push button to start the program and 'ans' is your static text box). Since txt wil...

mer än 10 år ago | 1

| accepted

Answered
using diff or gradient function normalized the vector
you have to divide by the time step. For instance, this gives you what you want dt=0.1; t=-2*pi:dt:2*pi; subplot(3,1,...

mer än 10 år ago | 0

Answered
importing .txt file into matlab push button
Hi Faiza, change handles.fileData = fscanf(fileID,'%d'); to temp = fscanf(fileID,'%d',[8 Inf]); handles.fil...

mer än 10 år ago | 0

| accepted

Answered
How to create three columns for matrix after indexing
Hi Mahesh, this will do what you want nx = size(dyzw,1); ny = size(dyzw,2); nz = size(dyzw,3); N = nx*ny*nz; ...

mer än 10 år ago | 0

| accepted

Answered
How to start analysing data from the highest value from excel?
Hi Alexander, I'm not entirely sure this is what you're looking for but I assume you want the vector 'a' within your for loop...

nästan 11 år ago | 0

| accepted

Answered
How can I read a txt file and put the values in a matrix, skipping the first rows?
M=dlmread('trial.txt','',skipRows,skipColumns) where skipRows is the number of rows you don't want to read at the start of ...

ungefär 11 år ago | 0

Answered
load a txt file to load a columns in a tex box on GUI
[filename, pathname] = uigetfile({'*.txt'},'Open File'); fullpathname = strcat(pathname, filename); fileVars = dlmread...

ungefär 11 år ago | 0

| accepted

Answered
How to slice 3d data in xyzv vector format
Hi, think this should work, fill in the x value for the slice you want to look at xslice = 0; scatter(y(x==xslice),z(...

ungefär 11 år ago | 0

Answered
construct array name in script
Hi Alex, I think the following code using eval will do what you want % read a file into a variable selecting all files w...

ungefär 11 år ago | 0

| accepted

Answered
different type variables need to be printed to .txt file
This will write the vectors time (n x 20 char) and data (n x 1 double) to the file output.txt with the vectors next to each othe...

mer än 11 år ago | 0

| accepted

Answered
Array indexing in parfor loops, why does this simple code not work?
You're getting the cell index for A out of vector B, however B could be defined with multiple elements having the same value (e....

mer än 11 år ago | 0

| accepted

Answered
Calculaing the table of values for function defined as an infinie series
you can use a for loop to do this t = 1:10; n = 0:50; for i=1:length(t) E(1,i)=sum(t(i).^n); en...

mer än 11 år ago | 2

| accepted

Answered
Call command line MySQL with user and password
Found the solution myself, might be helpful for someone else, write the mysql command to a batch file (e.g. test.bat) and call t...

mer än 11 år ago | 1

| accepted

Answered
code gives me a false values?
you can do it for all columns in one go (e1 will be a 3 column matrix) e1=finale; e1(e1>128)=e1(e1>128)-256; (or e1(e1>128...

mer än 11 år ago | 0

Answered
How to obtain different color graphs for a single matrix?
Strange, when I produce a 78x3 matrix using data=rand(78,3); and then do plot(data) it shows 3 lines in the standard blue, green...

mer än 11 år ago | 0

| accepted

Question


Call command line MySQL with user and password
Hi, I'm trying to call MySQL from Matlab in the same way you can call it from the DOS command line, i.e. (without the quotati...

mer än 11 år ago | 1 answer | 0

1

answer